Archived. Ruby Mixers was a collection of mixin modules spun off from Ruby Facets. Most of these patterns are now handled by Ruby's built-in features or are too niche to justify a standalone library. This repository is preserved for historical reference.
- Cloneable — Deep clone via
initialize_copy - Enumargs — Pass extra arguments through Enumerable methods to
#each - Equitable — Equality by attributes:
include Equitable(:name, :age) - Expirable — Expiration time tracking
- Hook — Named hooks with accumulated callbacks
- Instantiable — Let modules be used like classes
- OStructable — OpenStruct-like behavior for any class
- Preinitialize — Run setup hooks before
initialize - Registerable — Class-level registry for object lookup
Copyright (c) 2010 Thomas Sawyer
Apache 2.0 License.