From d9339677d6daa33dc020cf3400c3dec210b06f31 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Fri, 31 Jul 2020 10:58:52 -0500 Subject: [Command Tags] Add support for persistent variables --- app/lib/command_tag/command/hello_world.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/lib/command_tag/command/hello_world.rb (limited to 'app/lib/command_tag/command/hello_world.rb') diff --git a/app/lib/command_tag/command/hello_world.rb b/app/lib/command_tag/command/hello_world.rb new file mode 100644 index 000000000..ab10b495b --- /dev/null +++ b/app/lib/command_tag/command/hello_world.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CommandTag::Command::HelloWorld + def handle_helloworld_startup + @vars['hello_world'] = ['Hello, world!'] + end + + def handle_hello_world_with_return(_) + 'Hello, world!' + end +end -- cgit