Skip to content

Instantly share code, notes, and snippets.

@andkerosine
Created August 1, 2012 14:10
Show Gist options
  • Save andkerosine/3227131 to your computer and use it in GitHub Desktop.
Save andkerosine/3227131 to your computer and use it in GitHub Desktop.
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