Class: ReportEngine::Text

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

Direct Known Subclasses

Html::Text, Pdf::Text

Instance Method Summary collapse

Constructor Details

#initialize(canvas, options) ⇒ Text

Returns a new instance of Text.



3
4
5
6
7
8
9
10
# File 'lib/report_engine/text.rb', line 3

def initialize(canvas, options)
  @canvas = canvas
  @text = options[:text]
  @size = options[:size] || 10
  @padding = options[:padding] || 0
  @tag_type = options[:tag_type] || :p
  @tag_id = options[:id]
end