Last active
September 8, 2018 21:59
-
-
Save mehdi-farsi/6f06e10d1524c7795f786c1b25cf44bd to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Patch | |
@@res = refine(Array) {} | |
def self.res; @@res; end | |
end | |
p Patch.res # => #<refinement:Array@Patch> | |
p Patch.res.class # => Module | |
p Patch.res.ancestors # => [#<refinement:Array@Patch>, Array, ...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment