Class: Rover::DataFrame
- Inherits:
-
Object
- Object
- Rover::DataFrame
- Defined in:
- lib/to_csv.rb
Instance Method Summary collapse
-
#write_csv(path, encoding: nil) ⇒ Object
Rover#to_csv is already exist.
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 |