Module: Kernel

Defined in:
lib/rspec/mocks/extensions/proc.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) lambda_with_lambda_tracking

48
49
50
51
52
# File 'lib/rspec/mocks/extensions/proc.rb', line 48
def lambda_with_lambda_tracking(&block)
  l = lambda_without_lambda_tracking(&block)
  l.send :__is_lambda__=, true unless block.send(:__is_lambda__) == false
  l
end

- (Object) proc_with_lambda_tracking

54
55
56
57
58
# File 'lib/rspec/mocks/extensions/proc.rb', line 54
def proc_with_lambda_tracking(&block)
  l = proc_without_lambda_tracking(&block)
  l.send :__is_lambda__=, block.send(:__is_lambda__) == true
  l
end