Exception: Dry::Operation::PrependConfigurationError

Inherits:
Error
  • Object
show all
Defined in:
lib/dry/operation/errors.rb

Overview

Configuring prepending after a method has already been prepended

Instance Method Summary collapse

Constructor Details

#initialize(methods:) ⇒ PrependConfigurationError

Returns a new instance of PrependConfigurationError.



19
20
21
22
23
24
25
# File 'lib/dry/operation/errors.rb', line 19

def initialize(methods:)
  super <<~MSG
    '.operate_on' and '.skip_prepending' can't be called after any methods\
    in the class have already been prepended.
    The following methods have already been prepended: #{methods.join(", ")}
  MSG
end