warsplitter
A really dumb parser of sorts.
Installation
Add this to your application's shard.yml
:
dependencies:
warsplitter:
github: t-richards/warsplitter
Usage
require "warsplitter"
war = War.new("dogs vs cats ; in the context of who is the snuggliest")
pp war # => War(
# @first_option="dogs",
# @second_option="cats",
# @context="in the context of who is the snuggliest")
Best practices
- This class will raise exceptions if the input cannot be parsed
successfully. For the best chance of catching the correct ones, be sure to
rescue from
Warsplitter::WarCrime
, the top-level exception defined in this library.
Development
TODO Write development instructions here
Contributing
- Fork it ( https://github.com/t-richards/warsplitter/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
- t-richards Tom Richards - creator, maintainer