Class methods and private modifiers

08 December 2011

A nice puzzle for Ruby n00bs like me:

Yep, the private keyword only works with the methods defined as instance methods. Amazing detail :)

blog comments powered by Disqus