Class: RDoc::Markup::Raw
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| 
         Subclasses: 
        
       | 
    |
| Inherits: | Object | 
| Defined in: | lib/rdoc/markup/raw.rb | 
Overview
A section of text that is added to the output document as-is
Class Method Summary
- 
    
      .new(*parts)  ⇒ Raw 
    
    constructor
    
Creates a new
Rawcontaining #parts 
Instance Attribute Summary
- 
    
      #parts  
    
    readonly
    
The component parts of the list.
 
Instance Method Summary
- 
    
      #<<(text)  
    
    
Appends #text
 - 
    
      #accept(visitor)  
    
    
Calls #accept_raw+ on
visitor - 
    
      #merge(other)  
    
    
Appends
other's parts. - 
    
      #push(*texts)  
    
    
Appends
textsonto this Paragraph. - 
    
      #text  
    
    
The raw text.
 
Constructor Details
    .new(*parts)  ⇒ Raw 
  
Creates a new Raw containing #parts
Instance Attribute Details
#parts (readonly)
The component parts of the list
# File 'lib/rdoc/markup/raw.rb', line 10
attr_reader :parts
Instance Method Details
#<<(text)
Appends #text
#accept(visitor)
Calls #accept_raw+ on visitor
# File 'lib/rdoc/markup/raw.rb', line 34
def accept visitor visitor.accept_raw self end
#merge(other)
Appends other's parts
# File 'lib/rdoc/markup/raw.rb', line 41
def merge other @parts.concat other.parts end
#push(*texts)
Appends texts onto this Paragraph
# File 'lib/rdoc/markup/raw.rb', line 58
def push *texts self.parts.concat texts end
#text
The raw text
# File 'lib/rdoc/markup/raw.rb', line 65
def text @parts.join ' ' end