Class: Cukeregator::HtmlGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/cukeregator/html_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(aggregator) ⇒ HtmlGenerator

Returns a new instance of HtmlGenerator.



4
5
6
7
# File 'lib/cukeregator/html_generator.rb', line 4

def initialize(aggregator)
  @aggregator = aggregator
  @doc = new_doc
end

Instance Method Details

#docObject



9
10
11
12
13
# File 'lib/cukeregator/html_generator.rb', line 9

def doc
  @doc.root << head
  @doc.root << body
  @doc.to_xml
end