On Jul 7, 8:35 am, Presario 6331RSH HAM <[email protected]> wrote:
> Can anyone tell me why fred.my_class_method does not work? Fred is a
> person class is it not?
No, fred is an instance of the Person class, and you cannot call a
class method on it.
Nevertheless, you may call a class method on the class of fred.
Hint: "class" method gives you the class of an object.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---