Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/mixico.rb,
lib/mixico.rb
Instance Method Summary collapse
- #mix_eval(mod, *args, &blk) ⇒ Object (also: #mix_exec)
Instance Method Details
#mix_eval(mod, *args, &blk) ⇒ Object Also known as: mix_exec
65 66 67 68 69 70 71 72 |
# File 'lib/mixico.rb', line 65 def mix_eval mod, *args, &blk blk.mixin mod begin yield *args ensure blk.mixout mod end end |