Class: ReportEngine::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/report_engine/page.rb

Direct Known Subclasses

Html::Section, ReportEngine::Pdf::Section

Instance Method Summary collapse

Constructor Details

#initialize(canvas, options) ⇒ Page

Returns a new instance of Page.



3
4
5
6
7
# File 'lib/report_engine/page.rb', line 3

def initialize(canvas, options)
  @canvas = canvas
  @title = options[:title]
  @elements = options[:elements]
end

Instance Method Details

#renderObject



9
10
11
12
# File 'lib/report_engine/page.rb', line 9

def render
  print_title
  print_content
end