Module: Kinda::Core::ProcExtension
- Included in:
- Proc
- Defined in:
- lib/core/proc.rb
Instance Method Summary collapse
Instance Method Details
#call_with_this(this, *args, &block) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/core/proc.rb', line 4 def call_with_this(this, *args, &block) binding_self = binding.eval('self') binding_self.push_this(this) call(*args, &block) ensure binding_self.pop_this end |