Class: Sevgi::Graphics::Content::Verbatim
- Inherits:
-
Content
- Object
- Content
- Sevgi::Graphics::Content::Verbatim
- Defined in:
- lib/sevgi/graphics/auxiliary/content.rb
Overview
Verbatim content backed by an immutable payload snapshot. Mutable leaf objects are stringified during construction. Verbatim content bypasses XML escaping; validation guarantees encoding and legal XML 1.0 code points, not well-formed markup supplied by the caller.
Instance Method Summary collapse
-
#render(renderer, depth) ⇒ void
Renders verbatim content.
-
#to_s ⇒ String
Returns validated verbatim content.
Instance Method Details
#render(renderer, depth) ⇒ void
This method returns an undefined value.
Renders verbatim content.
276 |
# File 'lib/sevgi/graphics/auxiliary/content.rb', line 276 def render(renderer, depth) = renderer.append(depth + 1, to_s) |
#to_s ⇒ String
Returns validated verbatim content.
270 |
# File 'lib/sevgi/graphics/auxiliary/content.rb', line 270 def to_s = XML.text(payload) |