Skip to content

Instantly share code, notes, and snippets.

@timabdulla
Created August 31, 2012 21:55
Show Gist options
  • Save timabdulla/3559697 to your computer and use it in GitHub Desktop.
Save timabdulla/3559697 to your computer and use it in GitHub Desktop.
stack level too deep (SystemStackError)
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