class Jacoco::DOMParser

DOM parser for Jacoco report

Public Class Methods

read_path(path) click to toggle source
# File lib/jacoco/dom_parser.rb, line 6
def self.read_path(path)
  DOMParser.new.read_path(path)
end
read_string(string) click to toggle source
# File lib/jacoco/dom_parser.rb, line 10
def self.read_string(string)
  DOMParser.new.read_string(string)
end

Public Instance Methods

read_path(path) click to toggle source
# File lib/jacoco/dom_parser.rb, line 14
def read_path(path)
  file = File.read(path)
  read_string(file)
end
read_string(string) click to toggle source
# File lib/jacoco/dom_parser.rb, line 19
def read_string(string)
  Report.parse(string)
end