From: Austin Ziegler Date: 2006-12-04T13:35:23+09:00 Subject: Re: method overloading like Java? 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