Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- lib/mixico.rb
Instance Method Summary collapse
Instance Method Details
#mixin(mod) ⇒ Object
49 50 51 |
# File 'lib/mixico.rb', line 49 def mixin mod eval('self', binding).extend mod end |
#mixout(mod) ⇒ Object
53 54 55 |
# File 'lib/mixico.rb', line 53 def mixout mod (class << eval('self', binding); self end).disable_mixin mod end |