Class: DocItem

Inherits:
TextLine show all
Defined in:
lib/almirah/doc_items/doc_item.rb

Overview

rubocop:disable Style/Documentation

Constant Summary collapse

@@html_table_render_in_progress =

rubocop:disable Style/ClassVars

false

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from TextLine

add_lazy_doc_id, #bold, #bold_and_italic, #format_string, #italic, #link

Methods inherited from TextLineBuilderContext

#bold, #bold_and_italic, #italic, #link

Constructor Details

#initialize(doc) ⇒ DocItem

Returns a new instance of DocItem.



13
14
15
16
17
# File 'lib/almirah/doc_items/doc_item.rb', line 13

def initialize(doc)
  super()
  @parent_doc = doc
  @parent_heading = doc.headings[-1]
end

Instance Attribute Details

#parent_docObject

Returns the value of attribute parent_doc.



6
7
8
# File 'lib/almirah/doc_items/doc_item.rb', line 6

def parent_doc
  @parent_doc
end

#parent_headingObject

Returns the value of attribute parent_heading.



6
7
8
# File 'lib/almirah/doc_items/doc_item.rb', line 6

def parent_heading
  @parent_heading
end

Instance Method Details

#get_urlObject



19
20
21
# File 'lib/almirah/doc_items/doc_item.rb', line 19

def get_url
  ''
end