A parser for nested schema fields like:
'id,name,friends(id,name,age,contact(phone,email))'
that turns the data definition into a ruby object like:
['id', 'name', {'friends' => ['id', 'name', 'age', {'contact' => ['phone', 'email']}]}]
Add this line to your application's Gemfile:
gem 'fields'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fields
TODO: Write usage instructions here
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request