Created
August 1, 2012 14:10
-
-
Save andkerosine/3227131 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
class Symbol | |
def | other | |
-> arg { arg.send(self).send(other) } | |
end | |
end | |
class Proc | |
def | other | |
-> arg { call(arg).send(other) } | |
end | |
def < arg | |
self.call arg | |
end | |
end | |
p :split | :flatten | :size | :chr < File.read($0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment