Thursday, February 7, 2008

Prevent a class from instantiating

class Myclass
class << self
undef_method :new
end
end

No comments: