Class: PathSpec::Spec
- Inherits:
-
Object
- Object
- PathSpec::Spec
- Defined in:
- lib/pathspec/spec.rb
Overview
Abstract spec
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
-
#regex ⇒ Object
readonly
Returns the value of attribute regex.
Instance Method Summary collapse
- #inclusive? ⇒ Boolean
-
#initialize(*_) ⇒ Spec
constructor
A new instance of Spec.
- #match(files) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(*_) ⇒ Spec
Returns a new instance of Spec.
8 |
# File 'lib/pathspec/spec.rb', line 8 def initialize(*_); end |
Instance Attribute Details
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
6 7 8 |
# File 'lib/pathspec/spec.rb', line 6 def pattern @pattern end |
#regex ⇒ Object (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
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_s ⇒ Object
18 19 20 |
# File 'lib/pathspec/spec.rb', line 18 def to_s @pattern end |