Class: Covered::Files
Instance Attribute Summary collapse
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #empty? ⇒ Boolean
-
#initialize ⇒ Files
constructor
A new instance of Files.
- #mark(path, lineno, value) ⇒ Object
Methods inherited from Base
#accept?, #disable, #enable, #expand_path, #flush, #relative_path
Constructor Details
#initialize ⇒ Files
Returns a new instance of Files.
28 29 30 31 32 |
# File 'lib/covered/files.rb', line 28 def initialize(*) super @paths = {} end |
Instance Attribute Details
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
34 35 36 |
# File 'lib/covered/files.rb', line 34 def paths @paths end |
Instance Method Details
#each(&block) ⇒ Object
48 49 50 |
# File 'lib/covered/files.rb', line 48 def each(&block) @paths.each_value(&block) end |
#empty? ⇒ Boolean
36 37 38 |
# File 'lib/covered/files.rb', line 36 def empty? @paths.empty? end |