On 12/3/06, Yang Bob <bob.yang.dev / gmail.com> 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