Class: Covered::Skip
Instance Attribute Summary collapse
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Attributes inherited from Wrapper
Instance Method Summary collapse
- #accept?(path) ⇒ Boolean
-
#initialize(output, pattern) ⇒ Skip
constructor
A new instance of Skip.
Methods inherited from Filter
Methods inherited from Wrapper
#disable, #each, #enable, #mark, #to_h
Constructor Details
#initialize(output, pattern) ⇒ Skip
Returns a new instance of Skip.
109 110 111 112 113 |
# File 'lib/covered/files.rb', line 109 def initialize(output, pattern) super(output) @pattern = pattern end |
Instance Attribute Details
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
115 116 117 |
# File 'lib/covered/files.rb', line 115 def pattern @pattern end |
Instance Method Details
#accept?(path) ⇒ Boolean
117 118 119 |
# File 'lib/covered/files.rb', line 117 def accept? path !(@pattern === path) end |