2012-02-25 16:59:56 +00:00
|
|
|
first, second, third = ARGV
|
|
|
|
|
|
|
|
puts "The script is called: #{$0}"
|
|
|
|
puts "Your first variable is: #{first}"
|
|
|
|
puts "Your second variable is: #{second}"
|
|
|
|
puts "Your third variable is: #{third}"
|
2012-02-25 17:01:36 +00:00
|
|
|
|
|
|
|
print "And your fourth is?: "
|
|
|
|
puts "That's right, it's #{STDIN.gets.chomp}"
|