Popularity
1.5
Growing
Activity
7.6
Growing
87
3
7

Description

Behaves is a gem that helps you maintain contracts between different classes. This is especially useful for dealing for adapter patterns by making sure that all of your adapters define the required behaviors.

For example, you can specify that class Dog and class Cat should both behave the same as Animal, or that your ApiClientMock should behave the same as the original ApiClient (more explanation below)

The idea for Behaves stemmed from my research into adapter pattern in Ruby and José Valim's article on Mocks and explicit contracts.

Monthly Downloads: 252
Programming language: Ruby
License: MIT License

Behaves alternatives and similar gems

Based on the "Core Extensions" category

Do you think we are missing an alternative of Behaves or a related project?

Add another 'Core Extensions' Gem