class Covered::Wrapper
Attributes
output[R]
Public Class Methods
new(output = Base.new)
click to toggle source
# File lib/covered/wrapper.rb, line 49 def initialize(output = Base.new) @output = output end
Public Instance Methods
accept?(path)
click to toggle source
# File lib/covered/wrapper.rb, line 63 def accept?(path) @output.accept?(path) end
disable()
click to toggle source
# File lib/covered/wrapper.rb, line 59 def disable @output.disable end
each(&block)
click to toggle source
@yield [Coverage] the path to the file, and the execution counts.
# File lib/covered/wrapper.rb, line 72 def each(&block) @output.each(&block) end
enable()
click to toggle source
# File lib/covered/wrapper.rb, line 55 def enable @output.enable end
expand_path(path)
click to toggle source
# File lib/covered/wrapper.rb, line 80 def expand_path(path) @output.expand_path(path) end
mark(path, lineno, value)
click to toggle source
# File lib/covered/wrapper.rb, line 67 def mark(path, lineno, value) @output.mark(path, lineno, value) end
relative_path(path)
click to toggle source
# File lib/covered/wrapper.rb, line 76 def relative_path(path) @output.relative_path(path) end
to_h()
click to toggle source
# File lib/covered/wrapper.rb, line 84 def to_h @output.to_enum(:each).collect{|coverage| [coverage.path, coverage]}.to_h end