I think that was actually the reason why they introduced the change https://bugs.ruby-lang.org/issues/7998 Although it's kind of nice to think that it's just a weird coincidence :)
Cheers Mario On Friday, January 8, 2016 at 10:31:55 AM UTC+11, Jon R wrote: > > I still don’t think that’s a style, just abusing the fact that after Ruby > 2.1 the method name was returned from definitions… > > Jon Rowe > --------------------------- > [email protected] <javascript:> > jonrowe.co.uk > > On Friday, 8 January 2016 at 01:33, Ravi (Tom) Hale wrote: > > On 7/01/2016 2:08 PM, Jon Rowe wrote: > > that will work consistently… I’ve never seen `private_class_method def > self.class_method_name` in the wild I suspect that it only works by > accident… > > > I'm 99% sure that the `private_class_method def self.class_method_name` > style was added in Ruby 2.1 or later. > > On this note, does anyone know where to easily browse through the > changes in the various releases of Ruby? It would make for great > professional development reading. > > -- > Tom > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/rails-oceania. > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout.
