LittleTable
Little Tabel converts cucumber like tables to usefull objects
| column1 | column2 |
| cell1x1 | cell1x2 |
| cell2x1 | cell2x2 |
Converts to:
[{column1: 'cell1x1', column2: 'cell1x2'}, {column1: 'cell2x1', column2: 'cell2x2'}] # hashes
['column1','column2'] # headers
[['cell1x1', 'cell1x2'], ['cell2x1', 'cell2x2']] # rows
Installation
Add this line to your application's Gemfile:
gem 'little_table'
And then execute:
$ bundle
Or install it yourself as:
$ gem install little_table
Usage
TODO: Write usage instructions here
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request