r/ruby • u/batasrki • Aug 31 '10
Classboxes: theory behind a feature in Ruby 2.0
http://scg.unibe.ch/archive/papers/Berg03aClassboxes.pdf
12
Upvotes
4
u/cschneid Aug 31 '10
tl;dr - You can put override shit in one place, and not have the rest of the world see it.
Example: I can set Array.sum to flatten arrays. And another lib can set Array.sum to throw exceptions on nested arrays. Both libs can use their version and not step on each other.
2
u/badsex Aug 31 '10
where's the citation showing this will be a feature in ruby 2.0 ?