Class: Xcov::Line
- Inherits:
-
Object
- Object
- Xcov::Line
- Defined in:
- lib/xcov/model/line.rb
Instance Attribute Summary collapse
-
#executable ⇒ Object
readonly
Returns the value of attribute executable.
-
#execution_count ⇒ Object
readonly
Returns the value of attribute execution_count.
-
#ranges ⇒ Object
readonly
Returns the value of attribute ranges.
Class Method Summary collapse
-
.map(dictionary) ⇒ Object
Class methods.
- .map_ranges(dictionaries) ⇒ Object
Instance Method Summary collapse
- #covered? ⇒ Boolean
-
#initialize(execution_count, executable, ranges = nil) ⇒ Line
constructor
A new instance of Line.
Constructor Details
#initialize(execution_count, executable, ranges = nil) ⇒ Line
Returns a new instance of Line.
8 9 10 11 12 |
# File 'lib/xcov/model/line.rb', line 8 def initialize(execution_count, executable, ranges = nil) @execution_count = execution_count @executable = executable @ranges = ranges end |
Instance Attribute Details
#executable ⇒ Object (readonly)
Returns the value of attribute executable.
5 6 7 |
# File 'lib/xcov/model/line.rb', line 5 def executable @executable end |
#execution_count ⇒ Object (readonly)
Returns the value of attribute execution_count.
4 5 6 |
# File 'lib/xcov/model/line.rb', line 4 def execution_count @execution_count end |
#ranges ⇒ Object (readonly)
Returns the value of attribute ranges.
6 7 8 |
# File 'lib/xcov/model/line.rb', line 6 def ranges @ranges end |
Class Method Details
Instance Method Details
#covered? ⇒ Boolean
14 15 16 |
# File 'lib/xcov/model/line.rb', line 14 def covered? execution_count > 0 end |