class EPUB::ContentDocument::Navigation
Attributes
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/epub/content_document/navigation.rb, line 6 def initialize @navigations = [] super end
Public Instance Methods
contents()
click to toggle source
Enumerator version of toc
Usage: nagivation.enum_for(:contents)
# File lib/epub/content_document/navigation.rb, line 25 def contents end
each_content()
click to toggle source
iterator for toc
# File lib/epub/content_document/navigation.rb, line 34 def each_content end
each_landmark()
click to toggle source
iterator for landmark
# File lib/epub/content_document/navigation.rb, line 42 def each_landmark end
each_page()
click to toggle source
iterator for page_list
# File lib/epub/content_document/navigation.rb, line 38 def each_page end
landmarks()
click to toggle source
# File lib/epub/content_document/navigation.rb, line 19 def landmarks navigations.selector {|nav| nav.type == Navigation::Type::LANDMARKS}.first end
page_list()
click to toggle source
# File lib/epub/content_document/navigation.rb, line 15 def page_list navigations.selector {|nav| nav.type == Nagivation::Type::PAGE_LIST}.first end
pages()
click to toggle source
Enumerator version of page_list
Usage: navigation.enum_for(:pages)
# File lib/epub/content_document/navigation.rb, line 30 def pages end
toc()
click to toggle source
# File lib/epub/content_document/navigation.rb, line 11 def toc navigations.selector {|nav| nav.type == Navigation::Type::TOC}.first end