Complex is a built-in class. To make a Complex object, I write:
Complex
Complex(10, 5)
But if I create my own class
class Dog def initialize(name) @name = name end def greet puts 'hello' end end def Dog(x) Dog.new(x) #Create a new instance of the Dog class and return it. end d = Dog("Rover") d.greet --output:-- hello