Class: Covered::Files
Instance Attribute Summary collapse
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Attributes inherited from Wrapper
Instance Method Summary collapse
- #each ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(output = nil) ⇒ Files
constructor
A new instance of Files.
- #mark(path, *args) ⇒ Object
Methods inherited from Wrapper
Constructor Details
#initialize(output = nil) ⇒ Files
Returns a new instance of Files.
27 28 29 30 31 |
# File 'lib/covered/files.rb', line 27 def initialize(output = nil) super(output) @paths = {} end |
Instance Attribute Details
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
33 34 35 |
# File 'lib/covered/files.rb', line 33 def paths @paths end |
Instance Method Details
#each ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/covered/files.rb', line 47 def each return to_enum unless block_given? @paths.each do |path, coverage| yield coverage end end |
#empty? ⇒ Boolean
35 36 37 |
# File 'lib/covered/files.rb', line 35 def empty? @paths.empty? end |