Sha256: d219bc23f654207d10cde0b6dd248ae973e3bfe3e2e08ffc4dd596b38c45dc43

Contents?: true

Size: 341 Bytes

Versions: 8

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module Leftovers
  module Matchers
    class Path
      include ComparableInstance

      def initialize(fast_ignore)
        @fast_ignore = fast_ignore

        freeze
      end

      def ===(path)
        @fast_ignore.allowed?(path, exists: true, directory: false)
      end

      freeze
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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