-
-
Save headius/a4dd3b18b0eae7dfcd1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Blah | |
refine String do | |
def split(*) | |
['foo', 'bar'] | |
end | |
end | |
end | |
module Baz | |
refine Integer do; end | |
end | |
class Foo | |
using Blah | |
p 'hello'.split('l') | |
end | |
class Foo | |
using Baz | |
p 'hello'.split('l') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment