Module: Metamorpher::Matcher::Matching

Included in:
Terms::Term
Defined in:
lib/metamorpher/matcher/matching.rb

Instance Method Summary collapse

Instance Method Details

#match(other) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/metamorpher/matcher/matching.rb', line 8

def match(other)
  if other.nil?
    Matcher::NoMatch.new
  else
    accept MatchingVisitor.new(other)
  end
end