warsplitter
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
Repository
warsplitter
Owner
Statistic
- 1
- 0
- 0
- 1
- 0
- over 6 years ago
- April 23, 2018
License
MIT License
Links
Synced at
Fri, 22 Nov 2024 10:11:45 GMT
Languages