Ruby Refinements landed in trunk
blog.wyeworks.com
blog.wyeworks.com
Likewise, if the purpose of a library is to monkeypatch a standard class, you can selectively include that monkeypatch only where needed in order to isolate any potential side effects.