Class: Arel::Collectors::PlainString
- Inherits:
 - 
      Object
      
        
- Object
 - Arel::Collectors::PlainString
 
 
- Defined in:
 - lib/arel/collectors/plain_string.rb
 
Direct Known Subclasses
Instance Method Summary collapse
- #<<(str) ⇒ Object
 - 
  
    
      #initialize  ⇒ PlainString 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of PlainString.
 - #value ⇒ Object
 
Constructor Details
#initialize ⇒ PlainString
Returns a new instance of PlainString.
      6 7 8  | 
    
      # File 'lib/arel/collectors/plain_string.rb', line 6 def initialize @str = +"" end  | 
  
Instance Method Details
#<<(str) ⇒ Object
      14 15 16 17  | 
    
      # File 'lib/arel/collectors/plain_string.rb', line 14 def <<(str) @str << str self end  | 
  
#value ⇒ Object
      10 11 12  | 
    
      # File 'lib/arel/collectors/plain_string.rb', line 10 def value @str end  |