Last active
March 7, 2018 15:03
-
-
Save BitOfUniverse/8a323545a11ddddc8f5ed9039acba486 to your computer and use it in GitHub Desktop.
Ruby IIFE
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 returns symbol | |
# 1 | |
send def me; puts "iffy" end | |
# 2 | |
method(def me; puts "iffy" end).call | |
# 3 | |
(->{ puts "iffy" }).() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment