Re: Ruby Datastructure call a method (when you call a method Ruby executes the statements in the method):
by giving it's name:
mymethod pass arguments to a method
def showme(message)
puts message
end
message="ruby says hello"
showme(message)
__________________ Shaalini.S Be the Best of Whatever you are... |