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.



58
59
60
# File 'lib/epub/content_document/navigation.rb', line 58

def hidden
  @hidden
end

#parentObject

Returns the value of attribute parent.



58
59
60
# File 'lib/epub/content_document/navigation.rb', line 58

def parent
  @parent
end

Instance Method Details

#hidden?Boolean

Returns:

  • (Boolean)


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

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