-
-
Save bbhoss/1765453 to your computer and use it in GitHub Desktop.
Possible alternative approach?
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
class Local | |
def method_missing(*args) | |
"hello world" | |
end | |
end | |
def my_val | |
raise "goodbye cruel world" | |
end | |
Local.new.instance_eval { p public_send(:my_val) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment