Skip to content

Instantly share code, notes, and snippets.

@zotherstupidguy zotherstupidguy/matz.rb
Last active Nov 16, 2016

Embed
What would you like to do?
nested methods
def a &block
p "a"
def b &block
p "b"
def c &block
p "c"
instance_eval &block
end
instance_eval &block
undef :c
end
instance_eval &block
undef :b
end
# Works
a do
b do
c do
end
end
end
# Doesn't Work
b do
end
c do
end
@zotherstupidguy

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.