Class: RSpec::Core::Hooks::AfterHook

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

Instance Attribute Summary

Attributes inherited from Hook

#options

Instance Method Summary collapse

Methods inherited from Hook

#call, #initialize, #options_apply?, #to_proc

Constructor Details

This class inherits a constructor from RSpec::Core::Hooks::Hook

Instance Method Details

#run_in(example_group_instance) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/rspec/core/hooks.rb', line 37

def run_in(example_group_instance)
  if example_group_instance
    example_group_instance.instance_eval_with_rescue(&self)
  else
    call
  end
end