lib/datagrid/columns.rb
# Returns <tt>Array</tt> of human readable column names. See also "Localization" section
Returns Array of human readable column names. See also "Localization" section
Returns Array of human readable column names . See also " Localization " section
def to_csv(*column_names)
        options = columns.extract_options!
        klass = if RUBY_VERSION >= "1.9"
                  require 'csv'
                  CSV
                else
                  require "fastercsv"
                  FasterCSV
                end
        klass.generate(
          {:headers => self.header(*column_names), :write_headers => true}.merge(options)
        ) do |csv|
          self.rows(*column_names).each do |row|
            csv << row
          end
        end
      end
def to_csv ( * column_names ) options = columns . extract_options! klass = if RUBY_VERSION >= "1.9" require 'csv' CSV else require "fastercsv" FasterCSV end klass . generate ( { :headers => self . header ( * column_names ) , :write_headers => true } . merge ( options ) ) do | csv | self . rows ( * column_names ) . each do | row | csv << row end end end
Returns <tt>Array</tt> of human readable column names.
Returns <tt > Array< / tt > of human readable column names .
column_names
<not_specific>