Class: RSpec::Core::Hooks::Hook

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

Direct Known Subclasses

AfterContextHook, AfterHook, AroundHook, BeforeHook

Instance Attribute Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



343
344
345
# File 'lib/rspec/core/hooks.rb', line 343

def block
  @block
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



343
344
345
# File 'lib/rspec/core/hooks.rb', line 343

def options
  @options
end