Exception: Dry::Operation::PrependConfigurationError
- Defined in:
- lib/dry/operation/errors.rb
Overview
Configuring prepending after a method has already been prepended
Instance Method Summary collapse
-
#initialize(methods:) ⇒ PrependConfigurationError
constructor
A new instance of PrependConfigurationError.
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 |