V
Vivek
Hi,
can someone explain this.
irb(main):013:0> Class.instance_methods
=> ["superclass", "new"]
irb(main):014:0> Class.class
=> Class
I guess Class is an object(an instance of Class?) but its of type
Class. How can an object's type be an object itself.?
Vivek
can someone explain this.
irb(main):013:0> Class.instance_methods
=> ["superclass", "new"]
irb(main):014:0> Class.class
=> Class
I guess Class is an object(an instance of Class?) but its of type
Class. How can an object's type be an object itself.?
Vivek