From: Sean O'Halpin Date: 2006-05-12T01:32:23+09:00 Subject: Re: Creating a method like Array(object) On 5/11/06, Gennady Bystritsky wrote: > What you can do, though, use [] instead of (). Hi Gennady, You can define a method with the same name as a constant as they're in separate namespaces, e.g. class MyClass def initialize(*args, &block) p args end end def MyClass(*args, &block) MyClass.new(*args, &block) end o = MyClass(1,2,3) p o #=> # As the OP says, Array() is just a method on Kernel. Regards, Sean