Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

rubyworks/mixers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Mixers

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.

Modules

  • 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

Copyright (c) 2010 Thomas Sawyer

Apache 2.0 License.

About

Collection of mixin modules for Ruby

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages