Class: Sevgi::Graphics::Content::CData
- Inherits:
-
Sevgi::Graphics::Content
- Object
- Sevgi::Graphics::Content
- Sevgi::Graphics::Content::CData
- Defined in:
- lib/sevgi/graphics/auxilary/content.rb
Instance Attribute Summary
Attributes inherited from Sevgi::Graphics::Content
Instance Method Summary collapse
Methods inherited from Sevgi::Graphics::Content
cdata, css, encoded, #initialize, text, #to_s, verbatim
Constructor Details
This class inherits a constructor from Sevgi::Graphics::Content
Instance Method Details
#render(renderer, depth) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/sevgi/graphics/auxilary/content.rb', line 27 def render(renderer, depth) depth += 1 renderer.append(depth, "<![CDATA[") renderer.append(depth + 1, *Array(content)) renderer.append(depth, "]]>") end |