Class: Combinator

Inherits:
Object
  • Object
show all
Defined in:
lib/hivemind/combinators.rb

Direct Known Subclasses

Apply, Binary, Join, Lit, Many, Mat, Maybe, Ref

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