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



62
63
64
# File 'lib/epub/content_document/navigation.rb', line 62

def hidden
  @hidden
end

#parentObject

Returns the value of attribute parent



62
63
64
# File 'lib/epub/content_document/navigation.rb', line 62

def parent
  @parent
end

Instance Method Details

#hidden?Boolean

Returns:

  • (Boolean)


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

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