metaprogramming - Ruby Object Model clarification -
in ruby, can write,
dog = class.new so here, dog object instance of class.
also, can write
fido = dog.new which possible if dog class.
is dog here class or object?
everything in ruby object (except blocks). , dog here class.
dog = class.new fido = dog.new so answer is: both.
Comments
Post a Comment