dan-manges / mixology
- Source
- Commits
- Network (1)
- Issues (1)
- Downloads (1)
- Graphs
-
Tree:
7a08fe1
mixology /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Aug 24 11:14:57 -0700 2009 | |
| |
README.markdown | Mon Aug 24 11:14:57 -0700 2009 | |
| |
Rakefile | Mon Aug 24 17:42:40 -0700 2009 | |
| |
ext/ | Mon Aug 24 11:14:57 -0700 2009 | |
| |
lib/ | Sun Oct 12 20:47:50 -0700 2008 | |
| |
test/ | Mon Aug 24 11:14:57 -0700 2009 |
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
