diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-11-19 12:10:36 -0600 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-11-19 12:10:36 -0600 |
commit | dd3cea4ef6fc759543c6457e419c31dc7df6140a (patch) | |
tree | 88c151942418e2d686e7637c92e9c1c63f327e15 /app/lib/command_tag/commands/hello_world.rb | |
parent | 930f7145374adb79e92e9bdfcbc0d0044690b6c8 (diff) |
More robust loading of command interpreter modules
Diffstat (limited to 'app/lib/command_tag/commands/hello_world.rb')
-rw-r--r-- | app/lib/command_tag/commands/hello_world.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/lib/command_tag/commands/hello_world.rb b/app/lib/command_tag/commands/hello_world.rb new file mode 100644 index 000000000..cc770ef80 --- /dev/null +++ b/app/lib/command_tag/commands/hello_world.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module CommandTag::Commands::HelloWorld + def handle_helloworld_startup + @vars['hello_world'] = ['Hello, world!'] + end + + def handle_hello_world_with_return(_) + 'Hello, world!' + end +end |