Class: ReportEngine::Html::Text

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

Instance Method Summary collapse

Methods inherited from Text

#initialize

Constructor Details

This class inherits a constructor from ReportEngine::Text

Instance Method Details

#renderObject



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

def render
  @canvas.add_content "<#{@tag_type.to_s} #{tag_id}>#{@text.to_s}</#{@tag_type.to_s}>"
end

#tag_idObject



8
9
10
11
# File 'lib/report_engine/html/text.rb', line 8

def tag_id
  return "" if @tag_id.nil?
  "id=\"#{@tag_id}\""
end