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.
89 90 91 92 93 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 89 def initialize(doc, text, cls) super(doc) @text = text @cls = cls end |
Instance Attribute Details
#cls ⇒ Object
The verbatim text class
87 88 89 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 87 def cls @cls end |
#text ⇒ Object
The text
84 85 86 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 84 def text @text end |
Instance Method Details
#dump_string ⇒ Object
99 100 101 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 99 def dump_string return "#{@cls}: #{@text}" end |
#to_s ⇒ Object
95 96 97 |
# File 'lib/ctioga2/commands/doc/markup.rb', line 95 def to_s return text end |