Exception: ConvenientService::RSpec::Helpers::Classes::WrapMethod::Exceptions::ChainAttributePreliminaryAccess

Inherits:
Exception
  • Object
show all
Defined in:
lib/convenient_service/rspec/helpers/classes/wrap_method/exceptions.rb

Instance Method Summary collapse

Methods inherited from Exception

new

Instance Method Details

#initialize_with_kwargs(attribute:) ⇒ void

This method returns an undefined value.

Parameters:

  • attribute (Symbol)


14
15
16
17
18
19
20
# File 'lib/convenient_service/rspec/helpers/classes/wrap_method/exceptions.rb', line 14

def initialize_with_kwargs(attribute:)
  message = <<~TEXT
    Chain attribute `#{attribute}` is accessed before the chain is called.
  TEXT

  initialize(message)
end