From: Todd Benson Date: 2008-07-24T02:25:23+09:00 Subject: Re: multiple constructors? On Wed, Jul 23, 2008 at 12:09 PM, aidy wrote: > Hi, > > Is it possible to use multiple constructors in Ruby? > > class SQLServerConnection > > def initialize(server_name, db) > > end > > def initialize(server_name, db, user_name, password) > > end > end You can send your initialize an array or hash, or you can do class C def initialize( a, b, *c ) #verify and do stuff end end hth, Todd