From: Yang Bob Date: 2006-12-04T18:03:55+09:00 Subject: Re: method overloading like Java? ------=_Part_37101_12956176.1165223031302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline it's good and simple. thanks 2006/12/4, Austin Ziegler : > > On 12/3/06, Yang Bob wrote: > > But how about overloading by parameter numbers. such as: > > class FooClass { > > def foo(first){ } > > def foo(first, second) { } > > } > > > > does ruby support this ? if can not, how can we workaround this? > > class Foo > def foo(first, second = nil) > end > end > > -austin > -- > Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ > * austin@halostatue.ca * http://www.halostatue.ca/feed/ > * austin@zieglers.ca > > ------=_Part_37101_12956176.1165223031302--