Skip to content

Commit 96812fe

Browse files
committed
Greeting.rb: use global variables
All variables passed in via the bindings are global, so we need to use the dollar sign when referring to them.
1 parent fb65228 commit 96812fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/script-templates/Ruby/Greeting.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# the 'name' parameter from the user, and then display
77
# the 'greeting' output parameter, based on its type.
88

9-
greeting = "Hello, " + name + "!"
9+
$greeting = "Hello, " + $name + "!"

0 commit comments

Comments
 (0)