Method: RSpec::Core::Hooks::AfterHook#run_in

Defined in:
lib/rspec/core/hooks.rb

#run_in(example_group_instance) ⇒ Object



43
44
45
46
47
48
49
# File 'lib/rspec/core/hooks.rb', line 43

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