Class: SourceCodeParagraph
- Inherits:
-
ControlledParagraph
- Object
- TextLineBuilderContext
- TextLine
- DocItem
- Paragraph
- ControlledParagraph
- SourceCodeParagraph
- Defined in:
- lib/almirah/doc_items/source_code_paragraph.rb
Constant Summary collapse
- @@source_code_links_counter =
'AAAA'
Instance Attribute Summary
Attributes inherited from ControlledParagraph
#coverage_links, #down_links, #id, #source_code_links, #up_link_ids
Attributes inherited from Paragraph
Attributes inherited from DocItem
Instance Method Summary collapse
-
#initialize(doc, text) ⇒ SourceCodeParagraph
constructor
A new instance of SourceCodeParagraph.
Methods inherited from ControlledParagraph
Methods inherited from Paragraph
#getTextWithoutSpaces, #to_html
Methods inherited from 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, 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 |