Sha256: 5800bb0e619105a6aef003b768b419e2202e8a17a7dea3fb8faf11424f2cf666

Contents?: true

Size: 253 Bytes

Versions: 3

Compression:

Stored size: 253 Bytes

Contents

module GogoCsv
  class ::Matrix
    def save!(path=nil)
      raise 'Should supply file path' unless path ||= $current_path
      CSV.open(File.expand_path(path), "wb") do |csv|
        row_vectors.each { |v| csv << v.to_a }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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