Sha256: ce92a4ea83217f27d8b6d5798851863f8bbc3a524999d549d74d02c193b22b3e

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

require "gogo_csv/version"
require "gogo_csv/matrix"
require "gogo_csv/array"

module GogoCsv
  require 'csv'
  require 'matrix'

  def _(path='./input.csv', format=:arys)
    $current_path = path
    arys = CSV.read(
      File.expand_path(path)
    )

    $original_csv = case format
    when :matrix then Matrix[*arys]
    when :arys   then arys
    end
  end
end

include GogoCsv


@arys = _('./input.csv')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gogo_csv-0.0.7 lib/gogo_csv.rb