Ifrit
Set of useful classes, patches and hacks. Some of them are not "good" enough so be ready to make a deal with Ifrit.
Installation
Add this to your application's shard.yml
:
dependencies:
ifrit:
github: imdrasil/ifrit
Usage
This lib provides modular approach so you should specify what exactly you want to require:
require "ifrit/core" # for basic methods
require "ifrit/inheritable_json"
require "ifrit" # to load everything
Pacts
Core
require "ifrit/core"
Includes next methods:
#blank?
- behaves same way as rails one;#present?
- opposite to#blank?
;String#to_bool
- parses string for boolean value interpretation
Converter
require "ifrit/converter"
Symbol Table
require "ifrit/symbol_table"
Inheritable JSON
require "ifrit/inheritable_json"
Hash with indifferent access
require "ifrit/hash_with_indifferent_access"
Development
Before start working on any new feature please create an issue to discuss it.
Contributing
- Fork it ( https://github.com/imdrasil/ifrit/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
- imdrasil Roman Kalnytskyi - creator, maintainer