Mega Code Archive
Categories
/
Ruby
/
Language Basics
Using expression substitution
# you can grab an argument off the command line and add it to the output. #!/usr/bin/env ruby puts "Hello, #{ARGV[0]}!"