Class: PersistentDocument
- Inherits:
-
BaseDocument
- Object
- BaseDocument
- PersistentDocument
- Defined in:
- lib/almirah/doc_types/persistent_document.rb
Overview
rubocop:disable Style/Documentation
Direct Known Subclasses
Instance Attribute Summary collapse
-
#controlled_items ⇒ Object
Returns the value of attribute controlled_items.
-
#frontmatter ⇒ Object
Returns the value of attribute frontmatter.
-
#headings ⇒ Object
Returns the value of attribute headings.
-
#items ⇒ Object
Returns the value of attribute items.
-
#path ⇒ Object
Returns the value of attribute path.
-
#up_link_docs ⇒ Object
Returns the value of attribute up_link_docs.
Attributes inherited from BaseDocument
Instance Method Summary collapse
-
#initialize(fele_path) ⇒ PersistentDocument
constructor
A new instance of PersistentDocument.
Methods inherited from BaseDocument
Constructor Details
#initialize(fele_path) ⇒ PersistentDocument
Returns a new instance of PersistentDocument.
8 9 10 11 12 13 14 15 16 |
# File 'lib/almirah/doc_types/persistent_document.rb', line 8 def initialize(fele_path) super() @path = fele_path @items = [] @controlled_items = [] @headings = [] @up_link_docs = {} @frontmatter = nil end |
Instance Attribute Details
#controlled_items ⇒ Object
Returns the value of attribute controlled_items.
6 7 8 |
# File 'lib/almirah/doc_types/persistent_document.rb', line 6 def controlled_items @controlled_items end |
#frontmatter ⇒ Object
Returns the value of attribute frontmatter.
6 7 8 |
# File 'lib/almirah/doc_types/persistent_document.rb', line 6 def frontmatter @frontmatter end |
#headings ⇒ Object
Returns the value of attribute headings.
6 7 8 |
# File 'lib/almirah/doc_types/persistent_document.rb', line 6 def headings @headings end |
#items ⇒ Object
Returns the value of attribute items.
6 7 8 |
# File 'lib/almirah/doc_types/persistent_document.rb', line 6 def items @items end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/almirah/doc_types/persistent_document.rb', line 6 def path @path end |
#up_link_docs ⇒ Object
Returns the value of attribute up_link_docs.
6 7 8 |
# File 'lib/almirah/doc_types/persistent_document.rb', line 6 def up_link_docs @up_link_docs end |