View Single Post
  #3 (permalink)  
Old 03-27-2008, 10:46 PM
shaalini shaalini is offline
D-Web Analyst
 
Join Date: Apr 2007
Posts: 342
shaalini is on a distinguished road
Default 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...
Reply With Quote