2009/10/6 Pål Bergström <[email protected]>: > > Colin Law wrote: >> 2009/10/6 Pål Bergström <[email protected]>: > >> If you want to call it like that you must make test a class method >> rather than an instance method, so it must be >> def self.test >> .. >> >> Colin > > Thanks. I don't fully understand but it works. > > This means you don't need to require it (?)
Whether it is a class or instance method is nothing to do with requiring or not, it is just a fundamental of Ruby syntax. Colin > -- > Posted via http://www.ruby-forum.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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

