Class: Arel::Collectors::SQLString
- Inherits:
 - 
      PlainString
      
        
- Object
 - PlainString
 - Arel::Collectors::SQLString
 
 
- Defined in:
 - lib/arel/collectors/sql_string.rb
 
Instance Method Summary collapse
- #add_bind(bind) ⇒ Object
 - 
  
    
      #initialize  ⇒ SQLString 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of SQLString.
 
Methods inherited from PlainString
Constructor Details
#initialize ⇒ SQLString
Returns a new instance of SQLString.
      8 9 10 11  | 
    
      # File 'lib/arel/collectors/sql_string.rb', line 8 def initialize(*) super @bind_index = 1 end  | 
  
Instance Method Details
#add_bind(bind) ⇒ Object
      13 14 15 16 17  | 
    
      # File 'lib/arel/collectors/sql_string.rb', line 13 def add_bind(bind) self << yield(@bind_index) @bind_index += 1 self end  |