Class: Thepub::Epub::NCX::Head
- Inherits:
-
Struct
- Object
- Struct
- Thepub::Epub::NCX::Head
- Defined in:
- lib/thepub/epub/ncx.rb
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.
53 54 55 |
# File 'lib/thepub/epub/ncx.rb', line 53 def depth @depth end |
#uid ⇒ Object
Returns the value of attribute uid
49 50 51 |
# File 'lib/thepub/epub/ncx.rb', line 49 def uid @uid end |
Instance Method Details
#to_xml(builder) ⇒ Object
55 56 57 58 59 60 61 62 |
# File 'lib/thepub/epub/ncx.rb', line 55 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:maxPageNumber", :content => 0 end end |