Created
August 12, 2014 08:47
-
-
Save jackfranklin/b774a3c976b126356972 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 double(x) | |
x * 2 | |
end | |
p [1,2,3].map(&method(:double)) | |
# [2, 4, 6] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment