Sha256: 66ef537567522465bc8903632551a42d2760654f1380ee9e8abbf85a0b5a62c2

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Matchers
    class NodePath
      def initialize(path_matcher)
        @path_matcher = path_matcher

        freeze
      end

      def ===(node)
        @path_matcher === node.path
      end

      freeze
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
leftovers-0.8.0 lib/leftovers/matchers/node_path.rb
leftovers-0.7.0 lib/leftovers/matchers/node_path.rb
leftovers-0.6.0 lib/leftovers/matchers/node_path.rb