Method: RSpec::Core::Example.procsy
- Defined in:
- lib/rspec/core/example.rb
.procsy(metadata, &proc) ⇒ Object
Wraps the example block in a Proc so it can invoked using ‘run` or `call` in [around](../Hooks#around-instance_method) hooks.
112 113 114 |
# File 'lib/rspec/core/example.rb', line 112 def self.procsy(, &proc) Proc.new(&proc).extend(Procsy).with() end |