class CTioga2::Commands::Documentation::MarkedUpText::MarkupVerbatim
A markup item representing verbatim text, with the given class
Attributes
cls[RW]
The verbatim text class
text[RW]
The text
Public Class Methods
new(doc, text, cls)
click to toggle source
Calls superclass method
CTioga2::Commands::Documentation::MarkedUpText::MarkupItem::new
# File lib/ctioga2/commands/doc/markup.rb, line 89 def initialize(doc, text, cls) super(doc) @text = text @cls = cls end
Public Instance Methods
dump_string()
click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 99 def dump_string return "#{@cls}: #{@text}" end
to_s()
click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 95 def to_s return text end