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

Inherits:
Hook
  • Object
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, #display_name, #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


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