Re:Ruby lib/irb/easter-egg.rb
by dragonwriter on Sunday July 12, 2020 @11:46AM
(#23812174)
> It seems startlingly obvious, once you see it done, that `private def ...` is the idiomatic way to use it.
As you note that almost no one does it in Ruby, it is not the idiomatic way in Ruby. Idioms change slowly, and this wasn't supported for most of Ruby history.
As you note that almost no one does it in Ruby, it is not the idiomatic way in Ruby. Idioms change slowly, and this wasn't supported for most of Ruby history.