about summary refs log tree commit diff
path: root/app/lib/command_tag/commands
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-27 12:35:28 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:16 -0500
commit2fdc484caa2d6471116a28997bb0b7e04df6870e (patch)
tree89ca53ce7b4ac9fd76ea4fa2222860ed5e67af84 /app/lib/command_tag/commands
parent6adde25fb53594235ea1cae5216a3dfdd54ffef1 (diff)
[Command Tags] Add support for module initialization
Diffstat (limited to 'app/lib/command_tag/commands')
-rw-r--r--app/lib/command_tag/commands/hello_world.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/lib/command_tag/commands/hello_world.rb b/app/lib/command_tag/commands/hello_world.rb
index 581b21317..2341d22e2 100644
--- a/app/lib/command_tag/commands/hello_world.rb
+++ b/app/lib/command_tag/commands/hello_world.rb
@@ -1,6 +1,10 @@
 # frozen_string_literal: true
 
 module CommandTag::Commands::HelloWorld
+  def initialize_helloworld!
+    @vars['hello_world'] = ['Hello, world!']
+  end
+
   def handle_hello_world_at_start(_)
     @text << "\nHello, world!"
   end