Project

General

Profile

Bug #10563 » callee.rb

Maturin (Lars Benner), 12/02/2014 08:36 PM

 

# Simple script, which is called by 'caller.rb' that prints the given program arguments to STDOUT.

if true
# Short messages, only first and last argument
puts ARGV.first
puts ARGV.last
else
# Long messages, printing all arguments
ARGV.each { |a| puts a }
end
(2-2/2)