Class: Jacoco::DOMParser

Inherits:
Object
  • Object
show all
Defined in:
lib/jacoco/dom_parser.rb

Overview

DOM parser for Jacoco report

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.read_path(path) ⇒ Object



6
7
8
# File 'lib/jacoco/dom_parser.rb', line 6

def self.read_path(path)
  DOMParser.new.read_path(path)
end

.read_string(string) ⇒ Object



10
11
12
# File 'lib/jacoco/dom_parser.rb', line 10

def self.read_string(string)
  DOMParser.new.read_string(string)
end

Instance Method Details

#read_path(path) ⇒ Object



14
15
16
17
# File 'lib/jacoco/dom_parser.rb', line 14

def read_path(path)
  file = File.read(path)
  read_string(file)
end

#read_string(string) ⇒ Object



19
20
21
# File 'lib/jacoco/dom_parser.rb', line 19

def read_string(string)
  Report.parse(string)
end