Skip to content

Commit 63cb23c

Browse files
author
jgkim
committed
Make interactive
1 parent 906e65d commit 63cb23c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/hello.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# This is an unwanted but committed change.
2-
name = ARGV.first || "World"
3-
puts "Hello, #{name}!"
4-
puts "Hello, World"
5-
puts "hi"
6-
puts "hi2"
1+
puts "What's your name"
2+
my_name = gets.strip
3+
4+
puts "Hello, #{my_name}!"
75

0 commit comments

Comments
 (0)