Encapsulators

Collection of practical functions to be used with the 'encapsulate' gem.

Branch Status
Release Build Status Coverage Status Gem Version Total Downloads
Development Build Status Coverage Status

Installation

Add this line to your application's Gemfile:

gem 'encapsulators'

And then execute:

$ bundle

Or install it yourself as:

$ gem install encapsulators

Usage

See the encapsulate gem.

require 'encapsulate'
require 'encapsulators'

def base_function
  # ...
end

Encapsulate.run callback: base_function, with: [Encapsulators.user_interaction_before_return, Encapsulators.exception_handling]

Feedback

Any feedback is much appreciated.

I can only tailor this project to fit use-cases I know about - which are usually my own ones. If you find that this might be the right direction to solve your problem too but you find that it's suboptimal or lacks features don't hesitate to contact me.

Please let me know if you make use of this project so that I can prioritize further efforts.

Development

This gem is developed using Bundler conventions. A good overview can be found here.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/thisismydesign/encapsulators.

License

The gem is available as open source under the terms of the MIT License.