InheritableAccessors
Easily and consistently inherit attributes and configurations. This is particularly designed to work well with Rspec, which creates new inherited classes during each context. More examples of usage coming soon.
Planned features
- inheritable_hash
- support addition
- support delete/clear/reject
- inheritable_set
- support addition
- support deletion
Installation
Add this line to your application's Gemfile:
gem 'inheritable_accessors'
And then execute:
$ bundle
Or install it yourself as:
$ gem install inheritable_accessors
Usage
see specs.
Contributing
- Fork it ( https://github.com/blakechambers/inheritable-accessors/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