class RDoc::Markup::Raw
A section of text that is added to the output document as-is
Attributes
parts
[R]
Array[String]
The component parts of the list
Public Class Methods
(*String) → void
Source
# File lib/rdoc/markup/raw.rb, line 13 def initialize(*parts) @parts = parts end
Creates a new Raw containing parts
Public Instance Methods
(String) → void
Source
# File lib/rdoc/markup/raw.rb, line 19 def <<(text) @parts << text end
Appends text
(untyped) → void
Source
# File lib/rdoc/markup/raw.rb, line 31 def accept(visitor) visitor.accept_raw(self) end
Calls accept_raw+ on visitor @override
(Raw) → void
Source
# File lib/rdoc/markup/raw.rb, line 37 def merge(other) @parts.concat(other.parts) end
Appends other‘s parts
(*String) → void
Source
# File lib/rdoc/markup/raw.rb, line 55 def push(*texts) self.parts.concat(texts) end
Appends texts onto this Paragraph
() → String
Source
# File lib/rdoc/markup/raw.rb, line 61 def text @parts.join(" ") end
The raw text