A little something for Giles et. al. who feel that
private has no business in the Ruby language…
# Privacy? We don't need no stinkin' privacy! module TSA def private # NOOP end def protected # NOOP end end class Class include TSA end class GropeMeBaby def shoes "No bombs here!" end private def knickers "I see London, I see france..." end end o = GropeMeBaby.new o.shoes # => "No bombs here!" o.knickers # => "I see London, I see france..."
Just include that somewhere early in your program and you won’t even have to think about it.