Skip to content

Instantly share code, notes, and snippets.

@cypher
Created January 29, 2010 09:53
Show Gist options
  • Save cypher/289606 to your computer and use it in GitHub Desktop.
Save cypher/289606 to your computer and use it in GitHub Desktop.
class Proc
# "join" two procs
def +(other)
Proc.new { self.call; other.call }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment