blasterpal / inheritable-accessors

Inheritable accessors for hash and set.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Inheritable accessors for hash and set.

License:MIT License


Languages

Language:Ruby 98.5%Language:Shell 1.5%