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

Inherits:
Content
  • Object
show all
Defined in:
lib/sevgi/graphics/auxiliary/content.rb

Overview

XML text-encoded content.

Instance Method Summary collapse

Instance Method Details

#render(renderer, depth) ⇒ void

This method returns an undefined value.

Renders encoded text content.

Parameters:

  • renderer (Object)

    renderer receiving output

  • depth (Integer)

    current render depth



132
# File 'lib/sevgi/graphics/auxiliary/content.rb', line 132

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

#to_sString

Returns XML text-encoded content.

Returns:

  • (String)


126
# File 'lib/sevgi/graphics/auxiliary/content.rb', line 126

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