Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elifoster/oocsv-rb
A very dynamic object-oriented approach to CSV reading and writing.
https://github.com/elifoster/oocsv-rb
csv-reading dynamic ruby-gem
Last synced: 15 days ago
JSON representation
A very dynamic object-oriented approach to CSV reading and writing.
- Host: GitHub
- URL: https://github.com/elifoster/oocsv-rb
- Owner: elifoster
- License: mit
- Created: 2016-06-06T04:38:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-18T19:16:19.000Z (almost 4 years ago)
- Last Synced: 2024-12-01T01:50:51.229Z (about 1 month ago)
- Topics: csv-reading, dynamic, ruby-gem
- Language: Ruby
- Homepage: https://rubygems.org/gems/oocsv
- Size: 64.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# oocsv
[![Gem Version](https://badge.fury.io/rb/oocsv.svg)](https://badge.fury.io/rb/oocsv)A very dynamic object-oriented approach to CSV reading and writing.
## Installation
### RubyGems
```shell
$ gem install oocsv
```### Bundler
Add this line to the application's Gemfile:```ruby
gem('oocsv')
```And then execute:
```shell
$ bundle
```## Usage
```ruby
require 'oocsv'str = < "Year,Make,Model,Length\n1997,Ford,E350,2.34\n2000,Mercury,Cougar,2.38\n"
ary = OOCSV.read(str)
# => [#, #]print OOCSV.write(ary)
# Year,Make,Model,Length
# 1997,Ford,E350,2.34
# 2000,Mercury,Cougar,2.38ary[0].to_s
# => "#"
```