Class: RSpec::Core::Hooks::BeforeHook

Inherits:
Hook show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/hooks.rb

Instance Attribute Summary

Attributes inherited from Hook

#block, #options

Instance Method Summary collapse

Methods inherited from Struct

#as_json

Instance Method Details

#run(example) ⇒ Object



364
365
366
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/hooks.rb', line 364

def run(example)
  example.instance_exec(example, &block)
end