Class: CTioga2::Commands::Documentation::MarkedUpText::MarkupVerbatim
- Inherits:
-
MarkupItem
- Object
- MarkupItem
- CTioga2::Commands::Documentation::MarkedUpText::MarkupVerbatim
- Defined in:
- lib/ctioga2/commands/doc/markup.rb
Overview
A markup item representing verbatim text, with the given class
Instance Attribute Summary collapse
-
#cls ⇒ Object
The verbatim text class.
-
#text ⇒ Object
The text.
Attributes inherited from MarkupItem
Instance Method Summary collapse
- #dump_string ⇒ Object
-
#initialize(doc, text, cls) ⇒ MarkupVerbatim
constructor
A new instance of MarkupVerbatim.
- #to_s ⇒ Object
Constructor Details
#initialize(doc, text, cls) ⇒ MarkupVerbatim
Returns a new instance of MarkupVerbatim.
91 92 93 94 95 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 91 def initialize(doc, text, cls) super(doc) @text = text @cls = cls end |
Instance Attribute Details
#cls ⇒ Object
The verbatim text class
89 90 91 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 89 def cls @cls end |
#text ⇒ Object
The text
86 87 88 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 86 def text @text end |
Instance Method Details
#dump_string ⇒ Object
101 102 103 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 101 def dump_string return "#{@cls}: #{@text}" end |
#to_s ⇒ Object
97 98 99 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 97 def to_s return text end |