From 2fdc484caa2d6471116a28997bb0b7e04df6870e Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 27 Jul 2020 12:35:28 -0500 Subject: [Command Tags] Add support for module initialization --- app/lib/command_tag/commands/hello_world.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/lib/command_tag/commands') 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 -- cgit