Skip to content

Instantly share code, notes, and snippets.

@andkerosine
Created August 1, 2012 14:10
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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