class Leftovers::Matchers::NodePath
Public Class Methods
new(path_matcher)
click to toggle source
:nocov:
# File lib/leftovers/matchers/node_path.rb, line 10 def initialize(path_matcher) @path_matcher = path_matcher freeze end
Public Instance Methods
===(node)
click to toggle source
# File lib/leftovers/matchers/node_path.rb, line 16 def ===(node) @path_matcher === node.path end