Class Array
In: lib/array.rb
Parent: Object

Methods

to_sql  

Public Instance methods

Returns a string by collecting all elements, calling to_sql on each one, and then joins them with ’, ’.

   [10, 'book', :column2].to_sql     #=> "10, 'book', column2"

[Source]

    # File lib/array.rb, line 8
 8:   def to_sql
 9:     self.collect { |element| element.to_sql }.join(', ')
10:   end

[Validate]