Module: Leftovers::MatcherBuilders::NodePairValue

Defined in:
lib/leftovers/matcher_builders/node_pair_value.rb

Class Method Summary collapse

Class Method Details

.build(value_matcher) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/leftovers/matcher_builders/node_pair_value.rb', line 6

def self.build(value_matcher)
  return unless value_matcher

  And.build([
    Matchers::NodeType.new(:pair),
    Matchers::NodePairValue.new(value_matcher)
  ])
end