Class: ReportEngine::Pdf::Section
- Inherits:
-
ReportEngine::Page
- Object
- ReportEngine::Page
- ReportEngine::Pdf::Section
- Defined in:
- lib/report_engine/pdf/section.rb
Instance Method Summary collapse
Methods inherited from ReportEngine::Page
Constructor Details
This class inherits a constructor from ReportEngine::Page
Instance Method Details
#print_content ⇒ Object
4 5 6 7 8 |
# File 'lib/report_engine/pdf/section.rb', line 4 def print_content @elements.each do |element| @canvas.paint(element.delete(:type), element) end end |
#print_title ⇒ Object
10 11 12 13 14 |
# File 'lib/report_engine/pdf/section.rb', line 10 def print_title @canvas.pdf.pad(10) do @canvas.pdf.text @title, :size => 24 end end |