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
59 60 61 62 63 64 65 66 |
# File 'lib/mixico.rb', line 59 def mix_eval mod, *args, &blk blk.mixin mod begin yield *args ensure blk.mixout mod end end |