class RDoc::Markup::Raw

A section of text that is added to the output document as-is

Attributes

The component parts of the list

: Array

Public Class Methods

Creates a new Raw containing +parts+

: (*String) -> void

# File lib/rdoc/markup/raw.rb, line 13
def initialize(*parts)
  @parts = parts
end

Public Instance Methods

Appends +text+

: (String) -> void

# File lib/rdoc/markup/raw.rb, line 19
def <<(text)
  @parts << text
end
Calls #accept_raw+ on +visitor+
@override

: (untyped) -> void

# File lib/rdoc/markup/raw.rb, line 31
def accept(visitor)
  visitor.accept_raw(self)
end
Appends +other+'s parts

: (Raw) -> void

# File lib/rdoc/markup/raw.rb, line 37
def merge(other)
  @parts.concat(other.parts)
end
Appends +texts+ onto this Paragraph

: (*String) -> void

# File lib/rdoc/markup/raw.rb, line 55
def push(*texts)
  self.parts.concat(texts)
end
The raw text

: () -> String

# File lib/rdoc/markup/raw.rb, line 61
def text
  @parts.join(" ")
end