ruby keyword arguments of method

Posted by Yang on Stack Overflow See other posts from Stack Overflow or by Yang
Published on 2010-03-17T14:31:28Z Indexed on 2010/03/17 14:41 UTC
Read the original article Hit count: 231

Filed under:

How can I declare a method with keyword arguments just like rails do. some examples may be

Person.find(:all, :conditions => "..."). 

How can I use symbols to create methods similar to the above?

I am very new to ruby. Thanks in advance!

© Stack Overflow or respective owner

Related posts about ruby