247. Constructors
class Colour
def self.new_with_hex(*args, &block)
instance = allocate
instance.init_with_hex(*args, &block)
instance
end
248. Constructors
class Colour
def self.new_with_hex(*args, &block)
instance = allocate
instance.init_with_hex(*args, &block)
instance
end
def init_with_hex(name)
...
end
end