Class: PathSpec::Spec

Inherits:
Object
  • Object
show all
Defined in:
lib/pathspec/spec.rb

Overview

Abstract spec

Direct Known Subclasses

RegexSpec

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*_) ⇒ Spec

Returns a new instance of Spec.



8
# File 'lib/pathspec/spec.rb', line 8

def initialize(*_); end

Instance Attribute Details

#patternObject (readonly)

Returns the value of attribute pattern.



6
7
8
# File 'lib/pathspec/spec.rb', line 6

def pattern
  @pattern
end

#regexObject (readonly)

Returns the value of attribute regex.



6
7
8
# File 'lib/pathspec/spec.rb', line 6

def regex
  @regex
end

Instance Method Details

#inclusive?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/pathspec/spec.rb', line 14

def inclusive?
  true
end

#match(files) ⇒ Object



10
11
12
# File 'lib/pathspec/spec.rb', line 10

def match(files)
  raise 'Unimplemented'
end

#to_sObject



18
19
20
# File 'lib/pathspec/spec.rb', line 18

def to_s
  @pattern
end