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.
6 |
# File 'lib/pathspec/spec.rb', line 6 def initialize(*_); end |
Instance Attribute Details
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
4 5 6 |
# File 'lib/pathspec/spec.rb', line 4 def pattern @pattern end |
#regex ⇒ Object (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
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_s ⇒ Object
16 17 18 |
# File 'lib/pathspec/spec.rb', line 16 def to_s @pattern end |