class RDoc::Markup::Raw
A section of text that is added to the output document as-is
Attributes
The component parts of the list
Public Class Methods
Creates a new Raw
containing parts
# File lib/rdoc/markup/raw.rb, line 15 def initialize *parts @parts = [] @parts.concat parts end
Public Instance Methods
Appends text
# File lib/rdoc/markup/raw.rb, line 23 def << text @parts << text end
Calls accept_raw+ on visitor
# File lib/rdoc/markup/raw.rb, line 34 def accept visitor visitor.accept_raw self end
Appends other
‘s parts
# File lib/rdoc/markup/raw.rb, line 41 def merge other @parts.concat other.parts end
Appends texts
onto this Paragraph
# File lib/rdoc/markup/raw.rb, line 58 def push *texts self.parts.concat texts end
The raw text
# File lib/rdoc/markup/raw.rb, line 65 def text @parts.join ' ' end