Re:What's New in Ruby 2.1 [pdf]
by ngcazz on Wednesday November 27, 2013 @11:59AM
(#6809313)
That slide was a bit confusing for my underslept mind. Is that meant as an example of calling methods which work over the result of defining main (in this case static and void)?
[ Parent
| on HN ]
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.