Class: SourceCodeParagraph

Inherits:
ControlledParagraph show all
Defined in:
lib/almirah/doc_items/source_code_paragraph.rb

Constant Summary collapse

'AAAA'

Instance Attribute Summary

Attributes inherited from ControlledParagraph

#coverage_links, #down_links, #id, #source_code_links, #up_link_ids

Attributes inherited from Paragraph

#text

Attributes inherited from DocItem

#parent_doc, #parent_heading

Instance Method Summary collapse

Methods inherited from ControlledParagraph

#to_html

Methods inherited from Paragraph

#getTextWithoutSpaces, #to_html

Methods inherited from DocItem

#get_url

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, text) ⇒ SourceCodeParagraph

Returns a new instance of SourceCodeParagraph.



3
4
5
6
# File 'lib/almirah/doc_items/source_code_paragraph.rb', line 3

def initialize(doc, text)
  super(doc, text, "SC-#{@@source_code_links_counter}")
  @@source_code_links_counter.next!
end