I thought all classes in Ruby can be instantiated. What's preventing Integer class from being instantiated with new method?
Integer.new
# => NoMethodError: undefined method `new' for Integer:Class
I thought all classes in Ruby can be instantiated. What's preventing Integer class from being instantiated with new method?
Integer.new
# => NoMethodError: undefined method `new' for Integer:Class