class Covered::Files
Attributes
paths[R]
Public Class Methods
new(*)
click to toggle source
Calls superclass method
# File lib/covered/files.rb, line 28 def initialize(*) super @paths = {} end
Public Instance Methods
each(&block)
click to toggle source
# File lib/covered/files.rb, line 48 def each(&block) @paths.each_value(&block) end
empty?()
click to toggle source
# File lib/covered/files.rb, line 36 def empty? @paths.empty? end
mark(path, lineno, value)
click to toggle source
# File lib/covered/files.rb, line 40 def mark(path, lineno, value) coverage = (@paths[path] ||= Coverage.new(path)) coverage.mark(lineno, value) return coverage end