Class: RSpec::SleepingKingStudios::Deferred::Calls::Hook

Inherits:
RSpec::SleepingKingStudios::Deferred::Call show all
Defined in:
lib/rspec/sleeping_king_studios/deferred/calls/hook.rb

Overview

Value object representing a deferred RSpec example.

Instance Attribute Summary

Attributes inherited from RSpec::SleepingKingStudios::Deferred::Call

#arguments, #block, #keywords, #method_name

Instance Method Summary collapse

Methods inherited from RSpec::SleepingKingStudios::Deferred::Call

#==, #call, #initialize

Constructor Details

This class inherits a constructor from RSpec::SleepingKingStudios::Deferred::Call

Instance Method Details

#scopeSymbol

Returns the scope of the hook.

Returns:

  • (Symbol)

    the scope of the hook.



20
21
22
# File 'lib/rspec/sleeping_king_studios/deferred/calls/hook.rb', line 20

def scope
  arguments.first&.intern
end