Class: ReportEngine::Html::Section
- Inherits:
-
Page
- Object
- Page
- ReportEngine::Html::Section
show all
- Defined in:
- lib/report_engine/html/section.rb
Instance Method Summary
collapse
Methods inherited from Page
#initialize, #render
Instance Method Details
#print_content ⇒ Object
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)
end
end
|
#print_title ⇒ Object
4
5
6
|
# File 'lib/report_engine/html/section.rb', line 4
def print_title
@canvas.add_content("<li><h3>#{@title}</h3></li>")
end
|