Skip to content
monaka edited this page Mar 24, 2013 · 4 revisions

I can't override String#+

> class String
* def +
* end
* end
 => nil
> "a" + "b"
 => "ab"

This causes a error in CRuby. This behavior is a limitation by the current implementation.

Clone this wiki locally