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.



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

def initialize(*_); end

Instance Attribute Details

#patternObject (readonly)

Returns the value of attribute pattern.



4
5
6
# File 'lib/pathspec/spec.rb', line 4

def pattern
  @pattern
end

#regexObject (readonly)

Returns the value of attribute regex.



4
5
6
# File 'lib/pathspec/spec.rb', line 4

def regex
  @regex
end

Instance Method Details

#inclusive?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/pathspec/spec.rb', line 12

def inclusive?
  true
end

#match(files) ⇒ Object



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

def match(files)
  raise 'Unimplemented'
end

#to_sObject



16
17
18
# File 'lib/pathspec/spec.rb', line 16

def to_s
  @pattern
end