Module: Leftovers::MatcherBuilders::NodePath

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

Class Method Summary collapse

Class Method Details

.build(path_pattern) ⇒ Object



6
7
8
9
10
# File 'lib/leftovers/matcher_builders/node_path.rb', line 6

def self.build(path_pattern)
  matcher = Path.build(path_pattern)

  Matchers::NodePath.new(matcher) if matcher
end