Re:What's New in Ruby 2.1 [pdf]
by lectrick on Wednesday November 27, 2013 @02:07PM
(#6810335)
If you say "private def methodname(args); end",
the "private" keyword already takes a symbol for a method name to privatize, so in this case the return of "def methodname(args); end" is ":methodname" which then gets passed to "private" and everything magically works.
the "private" keyword already takes a symbol for a method name to privatize, so in this case the return of "def methodname(args); end" is ":methodname" which then gets passed to "private" and everything magically works.