Sha256: efb1921e0ba221ccb4e725c104706e4496847195a477670a3a6acdb16627972f

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

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

module GogoCsv
  require 'csv'
  require 'matrix'

  def open(path, format=:matrix)
    $path = path
    arys = CSV.read(
      File.expand_path(path)
    )

    case format
    when :matrix
      Matrix[*arys]
    when :arys
      arys
    end
  end
  module_function :open
end

include GogoCsv

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gogo_csv-0.0.2 lib/gogo_csv.rb