Class: Thepub::Epub::NCX::Head

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#depthObject

Returns the value of attribute depth.



53
54
55
# File 'lib/thepub/epub/ncx.rb', line 53

def depth
  @depth
end

#uidObject

Returns the value of attribute uid

Returns:

  • (Object)

    the current value of 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.meta :name => "dtb:uid", :content => self.uid
    builder.meta :name => "dtb:depth", :content => @depth
    builder.meta :name => "dtb:totalPageCount", :content => 0
    builder.meta :name => "dtb:maxPageNumber", :content => 0
  end
end