Class: RSpec::Core::Hooks::AroundHook

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

#display_name, #initialize, #options_apply?, #to_proc

Constructor Details

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

Instance Method Details

#call(wrapped_example) ⇒ Object



53
54
55
# File 'lib/rspec/core/hooks.rb', line 53

def call(wrapped_example)
  @block.call(wrapped_example)
end