Brandon Keepers
2008-Aug-20 13:03 UTC
Re: Difference in public class methods and instance methods?
On Wed, Aug 20, 2008 at 7:36 AM, Sunny Bogawat < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > What is difference between public class methods and public instance > methods? > I am interested in knowing in detail way. >Class methods are called on the class, whereas instance methods are called on instances of the class. class Foo def self.class_method end def instance_method end end Foo.class_method Foo.new.instance_method Find more information here: http://www.rubycentral.com/pickaxe/tut_classes.html Brandon -------------------------------------------------------------------------------- Sessions by Collective Idea: Ruby on Rails training in a vacation setting http://sessions.collectiveidea.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---