Class: Covered::Wrapper
- Inherits:
-
Base
- Object
- Base
- Covered::Wrapper
show all
- Defined in:
- lib/covered/wrapper.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(output = Base.new) ⇒ Wrapper
49
50
51
|
# File 'lib/covered/wrapper.rb', line 49
def initialize(output = Base.new)
@output = output
end
|
Instance Attribute Details
#output ⇒ Object
Returns the value of attribute output.
53
54
55
|
# File 'lib/covered/wrapper.rb', line 53
def output
@output
end
|
Instance Method Details
#accept?(path) ⇒ Boolean
63
64
65
|
# File 'lib/covered/wrapper.rb', line 63
def accept?(path)
@output.accept?(path)
end
|
#disable ⇒ Object
59
60
61
|
# File 'lib/covered/wrapper.rb', line 59
def disable
@output.disable
end
|
#each {|Coverage| ... } ⇒ Object
72
73
74
|
# File 'lib/covered/wrapper.rb', line 72
def each(&block)
@output.each(&block)
end
|
#enable ⇒ Object
55
56
57
|
# File 'lib/covered/wrapper.rb', line 55
def enable
@output.enable
end
|
#expand_path(path) ⇒ Object
80
81
82
|
# File 'lib/covered/wrapper.rb', line 80
def expand_path(path)
@output.expand_path(path)
end
|
#mark(path, lineno, value) ⇒ Object
67
68
69
|
# File 'lib/covered/wrapper.rb', line 67
def mark(path, lineno, value)
@output.mark(path, lineno, value)
end
|
#relative_path(path) ⇒ Object
76
77
78
|
# File 'lib/covered/wrapper.rb', line 76
def relative_path(path)
@output.relative_path(path)
end
|
#to_h ⇒ Object
84
85
86
|
# File 'lib/covered/wrapper.rb', line 84
def to_h
@output.to_enum(:each).collect{|coverage| [coverage.path, coverage]}.to_h
end
|