No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Arthur Poulet b5dd242c37
Rename and improve extend_parser
2 years ago
spec Rename and improve extend_parser 2 years ago
src Rename and improve extend_parser 2 years ago
.editorconfig Init project 2 years ago
.gitignore Init project 2 years ago
.travis.yml Init project 2 years ago
LICENSE Init project 2 years ago
README.md Rename and improve extend_parser 2 years ago
shard.yml Init project 2 years ago

README.md

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

  1. Fork it ( https://github.com/Nephos/FromPullParser/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am ‘Add some feature’)
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • Nephos Arthur Poulet - creator, maintainer