/inheritable-accessors

Inheritable accessors for hash and set.

Primary LanguageRubyMIT LicenseMIT

InheritableAccessors Build Status

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

  1. Fork it ( https://github.com/blakechambers/inheritable-accessors/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