Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a152a2ff61
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.505 kb
# this one is like your scripts with argv
def puts_two(*args)
arg1, arg2 = args
puts "arg1: #{arg1}, arg2: #{arg2}"
end
# ok, that *args is actually pointless we can just do this
def puts_two_again(arg1, arg2)
puts "arg1: #{arg1}, arg2: #{arg2}"
end
# this just takes one argument
def puts_one(arg1)
puts "arg1: #{arg1}"
end
# this one takes no arguments
def puts_none()
puts "I got nothin'."
end
puts_two("Johnny", "Holton")
puts_two_again("Johnny", "Holton")
puts_one("First")
puts_none()
Jump to Line
Something went wrong with that request. Please try again.