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 --------------------------- m...@jonrowe.co.uk 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 rails-oceania+unsubscr...@googlegroups.com > (mailto:rails-oceania+unsubscr...@googlegroups.com). > To post to this group, send email to rails-oceania@googlegroups.com > (mailto:rails-oceania@googlegroups.com). > 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 rails-oceania+unsubscr...@googlegroups.com. To post to this group, send email to rails-oceania@googlegroups.com. Visit this group at https://groups.google.com/group/rails-oceania. For more options, visit https://groups.google.com/d/optout.