Skip to content

Instantly share code, notes, and snippets.

@banister
Created July 10, 2014 20:06
Show Gist options
  • Save banister/58dde8d689da3cc2fc5e to your computer and use it in GitHub Desktop.
Save banister/58dde8d689da3cc2fc5e to your computer and use it in GitHub Desktop.
class Proc
def |(other)
->(*args) { self.(*args) || other.(*args) };
end
def &(other)
->(*args) { self.(*args) && other.(*args) }
end
end
@banister
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment