On Nov 28, 6:04 am, Colin Law <[email protected]> wrote: > On 28 November 2012 10:00, Manoj M. <[email protected]> wrote: > > > Whats is the idea behind using self.method_name ????? please help > > The first hit in google for > ruby def self > is > > http://yehudakatz.com/2009/11/15/metaprogramming-in-ruby-its-all-abou... > > which seems to just about cover it. >
Or it could be about disambiguating local variable versus method call. Hard to tell without more context. Fred > Colin -- 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 https://groups.google.com/groups/opt_out.

