Module: Wood::TreePattern::CombinatorialMatching

Included in:
OrMatcher
Defined in:
lib/wood/tree_pattern/or_matcher.rb

Instance Method Summary collapse

Instance Method Details

#|(other) ⇒ OrMatcher

Returns Matcher that matches ‘self` or `other`.

Returns:

  • (OrMatcher)

    Matcher that matches ‘self` or `other`.



4
5
6
# File 'lib/wood/tree_pattern/or_matcher.rb', line 4

def | other
  OrMatcher.new(self, other)
end