Class: Rover::DataFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/to_csv.rb

Instance Method Summary collapse

Instance Method Details

#write_csv(path, encoding: nil) ⇒ Object

Rover#to_csv is already exist.



68
69
70
71
# File 'lib/to_csv.rb', line 68

def write_csv(path, encoding: nil)
	enc = encoding.nil? ? "" : ":#{encoding}"
	open(path, "w#{enc}") {|f| f.write self.to_csv}
end