From: Roseanne Zhang Date: 2007-05-31T02:17:41+09:00 Subject: Re: using hash for method parameters aidy wrote: > #hi, > > #but I am ensure of my syntax > > #regards > > #aidy Are you creating your new language? Try the following: class Login def with(username, password) @username = username @password = password end end #now in my invocation, I would like to do something like this, login = Login.new login.with("abc", "def") p login -- Posted via http://www.ruby-forum.com/.