Class: Repub::Epub::Toc::Head
Instance Attribute Summary collapse
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#uid ⇒ Object
Returns the value of attribute uid.
Instance Method Summary collapse
Instance Attribute Details
#depth ⇒ Object
Returns the value of attribute depth.
50 51 52 |
# File 'lib/repub/epub/toc.rb', line 50 def depth @depth end |
#uid ⇒ Object
Returns the value of attribute uid
46 47 48 |
# File 'lib/repub/epub/toc.rb', line 46 def uid @uid end |
Instance Method Details
#to_xml(builder) ⇒ Object
52 53 54 55 56 57 58 59 |
# File 'lib/repub/epub/toc.rb', line 52 def to_xml(builder) builder.head do builder. :name => "dtb:uid", :content => self.uid builder. :name => "dtb:depth", :content => @depth builder. :name => "dtb:totalPageCount", :content => 0 builder. :name => "dtb:dtb:maxPageNumber", :content => 0 end end |