Class: Sevgi::Graphics::Content::Encoded

Inherits:
Sevgi::Graphics::Content show all
Defined in:
lib/sevgi/graphics/auxilary/content.rb

Instance Attribute Summary

Attributes inherited from Sevgi::Graphics::Content

#content

Instance Method Summary collapse

Methods inherited from Sevgi::Graphics::Content

cdata, css, encoded, #initialize, text, verbatim

Constructor Details

This class inherits a constructor from Sevgi::Graphics::Content

Instance Method Details

#render(renderer, depth) ⇒ Object



70
# File 'lib/sevgi/graphics/auxilary/content.rb', line 70

def render(renderer, depth) = renderer.append(depth + 1, to_s)

#to_sObject



68
# File 'lib/sevgi/graphics/auxilary/content.rb', line 68

def to_s                    = content.to_s.encode(xml: :text)