Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Mixology allows objects to mixin and unmix modules.
Ruby Java C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ext/mixology
lib
test
.gitignore
README.markdown
Rakefile

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

source

hosted on github

license

released under Ruby's license

Something went wrong with that request. Please try again.