Sha256: d57fa72445aa4eb83b4e142f8c04e94047202b65c580496303f65dc7d3be9f1b

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

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

module GogoCsv
  require 'csv'
  require 'matrix'

  def _(path, 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gogo_csv-0.0.5 lib/gogo_csv.rb
gogo_csv-0.0.4 lib/gogo_csv.rb
gogo_csv-0.0.3 lib/gogo_csv.rb