class Xcov::Line
Attributes
executable[R]
execution_count[R]
ranges[R]
Public Class Methods
map(dictionary)
click to toggle source
Class methods
# File lib/xcov/model/line.rb, line 20 def self.map(dictionary) ranges = map_ranges(dictionary["ranges"]) Line.new(dictionary["executionCount"], dictionary["executable"], ranges) end
map_ranges(dictionaries)
click to toggle source
# File lib/xcov/model/line.rb, line 25 def self.map_ranges(dictionaries) return nil if dictionaries.nil? dictionaries.map { |dictionary| Range.map(dictionary) } end
new(execution_count, executable, ranges = nil)
click to toggle source
# File lib/xcov/model/line.rb, line 8 def initialize(execution_count, executable, ranges = nil) @execution_count = execution_count @executable = executable @ranges = ranges end
Public Instance Methods
covered?()
click to toggle source
# File lib/xcov/model/line.rb, line 14 def covered? execution_count > 0 end