From: MenTaLguY Date: 2007-11-16T01:11:11+09:00 Subject: Re: Struct constructor On Fri, 16 Nov 2007 01:05:44 +0900, Wayne Magor wrote: > So how is [] defined in Ruby? Just curious. It must be a special-case. It's just a singleton method on the class object; "[]" is a valid method name. joe = Customer.send(:[], "Joe Smith", "123 Maple, Anytown NC", 12345) You can define a #[] method on anything. -mental