Created
August 31, 2012 21:55
-
-
Save timabdulla/3559697 to your computer and use it in GitHub Desktop.
stack level too deep (SystemStackError)
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 Foo | |
def bar | |
puts "baz" | |
end | |
end | |
proxied = Foo.new | |
proxy = Object.new | |
proxy.instance_eval do | |
def method_missing(method, *args, &block) | |
p proxied | |
end | |
end | |
proxy.bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment