Thread
:
Ruby Datastructure
View Single Post
#
5
(
permalink
)
03-27-2008, 10:48 PM
satheesh
D-Web Programmer
Join Date: Aug 2007
Posts: 95
Re: Ruby Datastructure
pass a variable number of arguments
def showme(firstw, *therest)
puts firstw + " " + therest.join(" ")
end
showme "Thank", "you", "very", "much!"
satheesh
View Public Profile
Send a private message to satheesh
Find all posts by satheesh