Created
October 22, 2009 16:05
-
-
Save gotascii/216053 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
def inner(&block) | |
@inner = block if block_given? | |
@inner | |
end | |
outter = lambda do | |
name = 'outter' | |
inner do | |
puts "inner sees #{name}" | |
end | |
end | |
outter.call | |
inner.call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment