Class: ReportEngine::Html::Text
- Inherits:
-
Text
- Object
- Text
- ReportEngine::Html::Text
show all
- Defined in:
- lib/report_engine/html/text.rb
Instance Method Summary
collapse
Methods inherited from Text
#initialize
Instance Method Details
#render ⇒ Object
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_id ⇒ Object
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
|