Class: Covered::Root
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from Wrapper
Instance Method Summary collapse
- #accept?(path) ⇒ Boolean
-
#initialize(output, path) ⇒ Root
constructor
A new instance of Root.
Methods inherited from Filter
Methods inherited from Wrapper
#disable, #each, #enable, #mark, #to_h
Constructor Details
#initialize(output, path) ⇒ Root
Returns a new instance of Root.
137 138 139 140 141 |
# File 'lib/covered/files.rb', line 137 def initialize(output, path) super(output) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
143 144 145 |
# File 'lib/covered/files.rb', line 143 def path @path end |
Instance Method Details
#accept?(path) ⇒ Boolean
145 146 147 |
# File 'lib/covered/files.rb', line 145 def accept?(path) path.start_with?(@path) end |