Class: PersistentDocument

Inherits:
BaseDocument show all
Defined in:
lib/almirah/doc_types/persistent_document.rb

Overview

rubocop:disable Style/Documentation

Direct Known Subclasses

Protocol, Specification

Instance Attribute Summary collapse

Attributes inherited from BaseDocument

#dom, #id, #title

Instance Method Summary collapse

Methods inherited from BaseDocument

#save_html_to_file

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_itemsObject

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

#frontmatterObject

Returns the value of attribute frontmatter.



6
7
8
# File 'lib/almirah/doc_types/persistent_document.rb', line 6

def frontmatter
  @frontmatter
end

#headingsObject

Returns the value of attribute headings.



6
7
8
# File 'lib/almirah/doc_types/persistent_document.rb', line 6

def headings
  @headings
end

#itemsObject

Returns the value of attribute items.



6
7
8
# File 'lib/almirah/doc_types/persistent_document.rb', line 6

def items
  @items
end

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/almirah/doc_types/persistent_document.rb', line 6

def path
  @path
end

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