Class: Repub::Epub::Toc::DocTitle

Inherits:
Struct
  • Object
show all
Defined in:
lib/repub/epub/toc.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



62
63
64
# File 'lib/repub/epub/toc.rb', line 62

def text
  @text
end

Instance Method Details

#to_xml(builder) ⇒ Object



66
67
68
69
70
# File 'lib/repub/epub/toc.rb', line 66

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