>>>>> "U" == Uwe Lammers <Uwe.Lammers / esa.int> writes:

U> I understand that a weakly-typed language like Ruby cannot
U> support method overloading based on arguments types, 

 No, it can and it's easy to implement it, but it has several problems and
it will not be in ruby in the near future (see [ruby-talk:15178])

U> Is there a way to accomplish this? I suppose making everything optional
U> is a way but surely not an elegant one:

 Not really elegant but you can use

   def initialize(*args)
   end

 and then dispatch on args.size


Guy Decoux