Class: Thepub::Epub::NCX::DocTitle

Inherits:
Struct
  • Object
show all
Defined in:
lib/thepub/epub/ncx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



65
66
67
# File 'lib/thepub/epub/ncx.rb', line 65

def text
  @text
end

Instance Method Details

#to_xml(builder) ⇒ Object



69
70
71
72
73
# File 'lib/thepub/epub/ncx.rb', line 69

def to_xml(builder)
  builder.docTitle do 
    builder.text self.text
  end
end