View Single Post
  #5 (permalink)  
Old 03-27-2008, 10:48 PM
satheesh satheesh is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 95
satheesh is on a distinguished road
Default Re: Ruby Datastructure

pass a variable number of arguments
def showme(firstw, *therest)
puts firstw + " " + therest.join(" ")
end

showme "Thank", "you", "very", "much!"
Reply With Quote