From: "aidy.lewis@..." Date: 2007-05-31T02:35:08+09:00 Subject: Re: using hash for method parameters On 30 May, 18:17, Roseanne Zhang wrote: > Try the following: > > class Login > > def with(username, password) > @username = username > @password = password > end > end > > > login = Login.new > login.with("abc", "def") > p login > Thanks for the post, but I am trying to explicitly name the parameters in the call, by attempting to use symbols and a hash, to make things a little more readable. So, I would like my call to contain something like this: login = Login.new login.with(:username => 'aidy', :password => 'aidy1') cheers aidy