Class: DocItem
- Inherits:
-
TextLine
- Object
- TextLineBuilderContext
- TextLine
- DocItem
- Defined in:
- lib/almirah/doc_items/doc_item.rb
Overview
rubocop:disable Style/Documentation
Direct Known Subclasses
Blockquote, CodeBlock, ControlledTable, ControlledTableRow, DocFooter, Image, MarkdownList, MarkdownTable, Paragraph, TodoBlock
Constant Summary collapse
- @@html_table_render_in_progress =
rubocop:disable Style/ClassVars
false
Instance Attribute Summary collapse
-
#parent_doc ⇒ Object
Returns the value of attribute parent_doc.
-
#parent_heading ⇒ Object
Returns the value of attribute parent_heading.
Instance Method Summary collapse
- #get_url ⇒ Object
-
#initialize(doc) ⇒ DocItem
constructor
A new instance of DocItem.
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_doc ⇒ Object
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_heading ⇒ Object
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_url ⇒ Object
19 20 21 |
# File 'lib/almirah/doc_items/doc_item.rb', line 19 def get_url '' end |