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

Inherits:
Hook
  • Object
show all
Defined in:
lib/rspec/core/hooks.rb

Instance Attribute Summary

Attributes inherited from Hook

#block, #options

Instance Method Summary collapse

Instance Method Details

#run(example) ⇒ Object



347
348
349
# File 'lib/rspec/core/hooks.rb', line 347

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