Module: Leftovers::MatcherBuilders::NodeName

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

Class Method Summary collapse

Class Method Details

.build(name_pattern) ⇒ Object



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

def self.build(name_pattern)
  matcher = Name.build(name_pattern)

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