Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/system.rb
Instance Method Summary collapse
Instance Method Details
#instance_eval_with_args(*args, &proc) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/system.rb', line 3 def instance_eval_with_args(*args, &proc) mod = @mpt_injection_module ||= Module.new self.extend mod mod.send :define_method, :mpt_instance_with_args_handler, proc self.mpt_instance_with_args_handler( *args ) mod.send :undef_method, :mpt_instance_with_args_handler end |