Class: Sevgi::Graphics::Content::Encoded
- Inherits:
-
Content
- Object
- Content
- Sevgi::Graphics::Content::Encoded
- Defined in:
- lib/sevgi/graphics/auxiliary/content.rb
Overview
XML text-encoded content.
Instance Method Summary collapse
-
#render(renderer, depth) ⇒ void
Renders encoded text content.
-
#to_s ⇒ String
Returns XML text-encoded content.
Instance Method Details
#render(renderer, depth) ⇒ void
This method returns an undefined value.
Renders encoded text content.
144 |
# File 'lib/sevgi/graphics/auxiliary/content.rb', line 144 def render(renderer, depth) = renderer.append(depth + 1, to_s) |
#to_s ⇒ String
Returns XML text-encoded content.
138 |
# File 'lib/sevgi/graphics/auxiliary/content.rb', line 138 def to_s = content.to_s.encode(xml: :text) |