Class methods and private modifiers
A nice puzzle for Ruby n00bs like me:
Yep, the private keyword only works with the methods defined as instance methods. Amazing detail :)
Derek C., 30th August 2011: What's the worst that could happen ?
A nice puzzle for Ruby n00bs like me:
Yep, the private keyword only works with the methods defined as instance methods. Amazing detail :)