-
-
Save 0x0dea/7fd377af0fbfe8c13ed9 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 Foo | |
refine Object do | |
def method_missing *args | |
args | |
end | |
end | |
refine Object.singleton_class do | |
def const_missing const | |
const | |
end | |
end | |
end | |
using Foo | |
foo 1, 2, 3 #=> [:foo, 1, 2, 3] | |
FOO #=> NameError :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment