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.



64
65
66
# File 'lib/epub/content_document/navigation.rb', line 64

def hidden
  @hidden
end

#parentObject

Returns the value of attribute parent.



64
65
66
# File 'lib/epub/content_document/navigation.rb', line 64

def parent
  @parent
end

Instance Method Details

#hidden?Boolean

Returns:

  • (Boolean)


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

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