From: "Jesús Gabriel y Galán" Date: 2012-03-29T22:36:28+09:00 Subject: Re: Why z = Complex(1,2) rather than z = Complex.new(1,2)? On Thu, Mar 29, 2012 at 3:26 PM, Ori Ben-Dor wrote: > What's this syntax, z = Complex(1,2), as opposed to z = > Complex.new(1,2)? How do I imitate this behavior in my own classes? It's a method in Kernel (which is included into Object, and so you can use it anywhere): http://ruby-doc.org/core-1.9.2/Kernel.html#method-i-Complex Jesus.