mixology icon indicating copy to clipboard operation
mixology copied to clipboard

Mixology allows objects to mixin and unmix modules.

Results 5 mixology issues
Sort by recently updated
recently updated
newest added

Now it's possible to use Mixology in the Gemfile with gem 'mixology', :git => 'git repo url'

The benchmarks are based on https://github.com/mikepack/dci_vs_include, it compares extend vs. include intended measurements for using DCI. I added the mixology gem to compare the results when using mixin vs. extend....

gem build fails with Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. ``` /home/duke/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb ``` creating Makefile make compiling mixology.c mixology.c: In function 'class_alloc': mixology.c:16:26: error: invalid application of...

module Mixology def mixin(mod) unmix mod reset_method_cache IncludedModule.new(mod).attach_to metaclass reset_method_cache mixed_in(self) self end def unmix(mod_to_unmix) last_super = metaclass this_super = metaclass.direct_superclass while this_super break if this_super == self.class if (this_super...