From: black eyes Date: 2008-07-14T13:36:57+09:00 Subject: Re: Passing arguments to a class, how do? Ryan Davis wrote: > On Jul 13, 2008, at 16:40 , David A. Black wrote: > >> The idea of the =-methods is that they use assignment syntax, and you >> can't do this: >> >> x=(1,2) > > well... > > >> x = 1, 2 > => [1, 2] I think in ruby now, can't use = for multi-paremeters, which is for future version of ruby > >> x = 1, 2 > => [1, 2] the [1, 2] are also only one parameter def namer=(args) p args end this also is done! infact i got the warning "test.rb:9: warning: parenthesize argument(s) for future version" -- Posted via http://www.ruby-forum.com/.