Ruby on Rails Wednesday, November 28, 2012

On Nov 28, 6:04 am, Colin Law <clan...@googlemail.com> wrote:
> On 28 November 2012 10:00, Manoj M. <li...@ruby-forum.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment