diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-31 10:58:52 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:16 -0500 |
commit | d9339677d6daa33dc020cf3400c3dec210b06f31 (patch) | |
tree | 38de2c33e4f61df299348b89da2e9c8600d78247 /app/lib/command_tag/command/hello_world.rb | |
parent | 4c47a96f67d303dec7b6047474380050053ac3d7 (diff) |
[Command Tags] Add support for persistent variables
Diffstat (limited to 'app/lib/command_tag/command/hello_world.rb')
-rw-r--r-- | app/lib/command_tag/command/hello_world.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |