about summary refs log tree commit diff
path: root/app/lib/command_tag/commands/hello_world.rb
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-27 15:29:34 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:16 -0500
commit89b5668d48229c18f89a7e34b814ea2cb0231422 (patch)
tree0b4476d7fd46633fc70a271dee13947e4f346bab /app/lib/command_tag/commands/hello_world.rb
parent1bd2aa1fd6a16c2067255b936da071d451aee884 (diff)
[Command Tags] Simplify tag processing and add support for return value templates
Diffstat (limited to 'app/lib/command_tag/commands/hello_world.rb')
-rw-r--r--app/lib/command_tag/commands/hello_world.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/command_tag/commands/hello_world.rb b/app/lib/command_tag/commands/hello_world.rb
index 2341d22e2..d67f65333 100644
--- a/app/lib/command_tag/commands/hello_world.rb
+++ b/app/lib/command_tag/commands/hello_world.rb
@@ -5,7 +5,7 @@ module CommandTag::Commands::HelloWorld
     @vars['hello_world'] = ['Hello, world!']
   end
 
-  def handle_hello_world_at_start(_)
-    @text << "\nHello, world!"
+  def handle_hello_world_with_return(_)
+    'Hello, world!'
   end
 end