Class: Combinator
- Inherits:
-
Object
show all
- Defined in:
- lib/hivemind/combinators.rb
Instance Method Summary
collapse
Instance Method Details
#&(other) ⇒ Object
4
5
6
|
# File 'lib/hivemind/combinators.rb', line 4
def &(other)
And.new(self, other)
end
|
#|(other) ⇒ Object
8
9
10
|
# File 'lib/hivemind/combinators.rb', line 8
def |(other)
Or.new(self, other)
end
|