From: "David A. Black" Date: 2009-11-21T21:14:17+09:00 Subject: Re: confuse about initialize hash Hi -- On Sat, 21 Nov 2009, Zhenning Guan wrote: > def in(options ={} ) > p options > end > > in(:say => "somehting") # {:say => "something"} > > but under the hood of it, doesn't that process equivalent to > ------- > options = {} > options = :say => "something" > ------- > or > ------ > options = :say => "something" > ------ > ??? none of this can compiler. Don't name your method 'in'. That's a reserved word. David -- THE COMPLEAT RUBYIST, Ruby training with Black/Brown/McAnally! January 22-23, Tampa, Florida Info and registration at http://www.thecompleatrubyist.com -------------------------------------- My new job: http://tinyurl.com/yfpn9hz