From: Martin DeMello Date: 2002-11-22T19:17:18+09:00 Subject: Re: [FAQ] Multiple constructors? Nat Pryce wrote: > If you want to have different constructors for different argument types, > define different constructors on your class. Your code will then be > both more flexible and more readable. E.g. If you had a class that > could be created with either a String and a Regexp you would define > constructors new_from_string(a_string) and new_from_regexp(a_regexp). This won't let me do something like my_objs = input_objs.map {|i| MyClass.new(i)} martin