Created
September 20, 2013 05:56
-
-
Save jhamon/6633789 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 mymethod3(&blk) | |
puts "Hello from inside method 3" | |
yield | |
end | |
mymethod3 do | |
puts "I'm part of a block." | |
puts "I get evaluated by mymethod3 even" | |
puts "though a procified block is never" | |
puts "explicitly called by the method." | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment