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
# see http://mng.iop.kcl.ac.uk/site/node/617 for more notes | |
def anonymous_block_test() | |
if block_given? | |
yield | |
end | |
end | |
anonymous_block_test do | |
puts "yield runs an anonymous block param" |