method
eval_block
1.3.0 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::BaseExpectation
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
eval_block(*args, &block)
protected
Hide source
# File lib/spec/mocks/message_expectation.rb, line 174 def eval_block(*args, &block) if @eval_context @eval_context.instance_exec(*args, &block) else block.call(*args) end end