Created
August 26, 2017 05:37
-
-
Save kaochenlong/d625aea0a4702d9da5a2b6f68d22e31d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 block_test(&b) | |
b.call | |
b.yield | |
b.() | |
b.[] | |
b.=== | |
end | |
block_test { puts "hi" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment