class CTioga2::Commands::Documentation::MarkedUpText::MarkupText
A markup item representing plain text.
Attributes
kind[RW]
The kind of markup, nil means no markup
text[RW]
The text
Public Class Methods
new(doc, text = "", strip = true, kind = nil)
click to toggle source
Calls superclass method
CTioga2::Commands::Documentation::MarkedUpText::MarkupItem::new
# File lib/ctioga2/commands/doc/markup.rb, line 60 def initialize(doc, text = "", strip = true, kind = nil) super(doc) @text = text @kind = kind if strip @text.gsub!(/\n/, " ") end end
Public Instance Methods
dump_string()
click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 74 def dump_string return "text: #{@text}" end
to_s()
click to toggle source
# File lib/ctioga2/commands/doc/markup.rb, line 70 def to_s return text end