Popularity
1.4
Growing
Activity
7.7
Growing
79
2
6

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: 940
Programming language: Ruby
License: MIT License

Behaves alternatives and related 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

Behaves Recommendations

There are no recommendations yet. Be the first to promote Behaves!

Have you used Behaves? Share your experience. Write a short recommendation and Behaves, you and your project will be promoted on Awesome Ruby.
Recommend Behaves

Recently added Behaves resources

Do you know of a usefull tutorial, book or news relevant to Behaves?
Be the first to add one!