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