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