This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 64dcaf93de4526209118e9a292535d5d09dd8614
tree 97e0dfb735992d80792ca6625fb4b8bab376c971
parent f683dded4a36ee960e5d50e49c6e2b788ba1d214
tree 97e0dfb735992d80792ca6625fb4b8bab376c971
parent f683dded4a36ee960e5d50e49c6e2b788ba1d214
mixology /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
README.markdown | ||
| |
Rakefile | ||
| |
ext/ | ||
| |
lib/ | ||
| |
test/ |
README.markdown
mixology
a gem that allows objects to effectively mixin and unmix modules
installation
gem install mixology
usage
require "mixology"
mixin = Module.new { def foo; "foo from mixin"; end }
object = Class.new { def foo; "foo from object"; end }.new
object.mixin mixin
object.foo #=> "foo from mixin"
object.unmix mixin
object.foo #=> "foo from object"
that's pretty much it. for other examples, take a look at the tests.
implementations
- MRI 1.8.x, 1.9.x
- JRuby 1.1.x
collaborators
- Patrick Farley
- anonymous z
- Dan Manges
- Clint Bishop
- Banister Fiend
- Tianyi Cui
source
hosted on github
license
released under Ruby's license








