Class: ReportEngine::Html::Section

Inherits:
Page
  • Object
show all
Defined in:
lib/report_engine/html/section.rb

Instance Method Summary collapse

Methods inherited from Page

#initialize, #render

Constructor Details

This class inherits a constructor from ReportEngine::Page

Instance Method Details



8
9
10
11
12
13
# File 'lib/report_engine/html/section.rb', line 8

def print_content
  @elements.each do |element|
    @canvas.paint(element.delete(:type), element)
    # @canvas.add_content(element.render_html)
  end
end


4
5
6
# File 'lib/report_engine/html/section.rb', line 4

def print_title
  @canvas.add_content("<li><h3>#{@title}</h3></li>")
end