FromPullParser
TODO Write a description here
Installation
Add this to your application's shard.yml
:
dependencies:
FromPullParser:
github: Nephos/FromPullParser
Usage
require "FromPullParser"
require "json"
class Foo
JSON.mapping(a: Int32)
end
class Bar < Foo
getter b : Int32?
FromPullParser.initialize_from_parser(JSON, b = nil) do
@b = b
end
end
bar = Bar.from_json("{\"a\": 1}", 2)
TODO Write usage instructions here
Development
TODO Write development instructions here
Contributing
- Fork it ( https://github.com/Nephos/FromPullParser/fork )
- 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 a new Pull Request
Contributors
- Nephos Arthur Poulet - creator, maintainer