File: spec.rb

package info (click to toggle)
ruby-pathspec 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 248 kB
  • sloc: ruby: 1,037; makefile: 9; sh: 5
file content (22 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

class PathSpec
  # Abstract spec
  class Spec
    attr_reader :regex, :pattern

    def initialize(*_); end

    def match(files)
      raise 'Unimplemented'
    end

    def inclusive?
      true
    end

    def to_s
      @pattern
    end
  end
end