Ruby may seem easier to pick up than java, but it gets pretty complicated when you actually try to understand its power.
Try explaining eigenclasses to some java-only developers sometime.
Try explaining eigenclasses to some java-only developers sometime.
# o is an instance of its singleton class,
# which inherits from Object
o = Object.new
It is like saying: class Object
def self.new(*args, &block)
# Class.new(Object) creates an anonymous
# subclass of Object
Class.new(Object).new(*args, &block)
end
end
except with built-in language support. Instead of having to do this manually, every object gets a singleton.Eg. what is the eigenclass of an eigenclass?