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

  1. 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

  1. Fork it ( https://github.com/t-richards/warsplitter/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

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