class Covered::Cache

Public Class Methods

new(output) click to toggle source
Calls superclass method
# File lib/covered/capture.rb, line 56
def initialize(output)
        super(output)
        @marks = []
end

Public Instance Methods

disable() click to toggle source
Calls superclass method
# File lib/covered/capture.rb, line 77
def disable
        super
        
        flush
end
enable() click to toggle source
Calls superclass method
# File lib/covered/capture.rb, line 65
def enable
        super
end
flush() click to toggle source
# File lib/covered/capture.rb, line 69
def flush
        @marks.each_slice(3) do |path, lineno, count|
                @output.mark(path, lineno, count)
        end
        
        @marks.clear
end
mark(path, lineno, count = 1) click to toggle source
# File lib/covered/capture.rb, line 61
def mark(path, lineno, count = 1)
        @marks << path << lineno << count
end