lib/gogo_csv.rb in gogo_csv-0.0.2 vs lib/gogo_csv.rb in gogo_csv-0.0.3
- old
+ new
@@ -4,22 +4,19 @@
module GogoCsv
require 'csv'
require 'matrix'
- def open(path, format=:matrix)
- $path = path
+ def _(path, format=:arys)
+ $current_path = path
arys = CSV.read(
File.expand_path(path)
)
- case format
- when :matrix
- Matrix[*arys]
- when :arys
- arys
+ $original_csv = case format
+ when :matrix then Matrix[*arys]
+ when :arys then arys
end
end
- module_function :open
end
include GogoCsv