Module: EPUB::ContentDocument::Navigation::Hidable

Included in:
Item, ItemList
Defined in:
lib/epub/content_document/navigation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hiddenObject

Returns the value of attribute hidden



60
61
62
# File 'lib/epub/content_document/navigation.rb', line 60

def hidden
  @hidden
end

#parentObject

Returns the value of attribute parent



60
61
62
# File 'lib/epub/content_document/navigation.rb', line 60

def parent
  @parent
end

Instance Method Details

#hidden?Boolean

Returns:

  • (Boolean)


62
63
64
65
66
67
68
# File 'lib/epub/content_document/navigation.rb', line 62

def hidden?
  if @hidden.nil?
    @parent ? @parent.hidden? : false
  else
    true
  end
end