Sha256: 8f83c4de9301e7c53bed096fcad2e4aa3377c6f6f8ed7cb40286353336d03fe2

Contents?: true

Size: 324 Bytes

Versions: 8

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Matchers
    class NodePath
      include ComparableInstance

      attr_reader :matcher

      def initialize(matcher)
        @matcher = matcher

        freeze
      end

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

      freeze
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
leftovers-0.12.2 lib/leftovers/matchers/node_path.rb
leftovers-0.12.1 lib/leftovers/matchers/node_path.rb
leftovers-0.12.0 lib/leftovers/matchers/node_path.rb
leftovers-0.11.2 lib/leftovers/matchers/node_path.rb
leftovers-0.11.1 lib/leftovers/matchers/node_path.rb
leftovers-0.11.0 lib/leftovers/matchers/node_path.rb
leftovers-0.10.0 lib/leftovers/matchers/node_path.rb
leftovers-0.9.0 lib/leftovers/matchers/node_path.rb