Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (34 sloc) 0.992 kb
818d0a4 @dan-manges adding a readme
authored
1 mixology
2 ========
3
4 a gem that allows objects to effectively mixin and unmix modules
5
6 installation
7 ------------
8
9 gem install mixology
10
11 usage
12 -----
13
14 require "mixology"
15
16 mixin = Module.new { def foo; "foo from mixin"; end }
17 object = Class.new { def foo; "foo from object"; end }.new
18
19 object.mixin mixin
20 object.foo #=> "foo from mixin"
21
22 object.unmix mixin
23 object.foo #=> "foo from object"
24
25 that's pretty much it. for other examples, take a look at the tests.
26
44694d2 @dan-manges initial rubinius implementation. mark failing tests as pending for ru…
authored
27 implementations
28 ---------------
4ffbfb9 @dan-manges fix jruby deprecation warnings by using defineAnnotatedMethods instea…
authored
29
f683dde @tianyicui Update C extension and test cases to be compatible with Ruby 1.9
tianyicui authored
30 * MRI 1.8.x, 1.9.x
4ffbfb9 @dan-manges fix jruby deprecation warnings by using defineAnnotatedMethods instea…
authored
31 * JRuby 1.1.x
32
818d0a4 @dan-manges adding a readme
authored
33 collaborators
34 -------------
35
36 * [Patrick Farley](http://www.klankboomklang.com/)
37 * anonymous z
38 * [Dan Manges](http://www.dcmanges.com/blog)
39 * Clint Bishop
f683dde @tianyicui Update C extension and test cases to be compatible with Ruby 1.9
tianyicui authored
40 * [Banister Fiend](http://banisterfiend.wordpress.com/)
41 * [Tianyi Cui](http://cuitianyi.com/)
818d0a4 @dan-manges adding a readme
authored
42
43 source
44 ------
45
46 hosted on [github](http://github.com/dan-manges/mixology/tree/master)
47
48 license
49 -------
50
51 released under [Ruby's license](http://www.ruby-lang.org/en/LICENSE.txt)
Something went wrong with that request. Please try again.