Exception: Dry::Monads::ConstructorNotAppliedError
- Inherits:
-
NoMethodError
- Object
- NoMethodError
- Dry::Monads::ConstructorNotAppliedError
- Defined in:
- lib/dry/monads/errors.rb
Overview
Improper use of None
Instance Method Summary collapse
-
#initialize(method_name, constructor_name) ⇒ ConstructorNotAppliedError
constructor
A new instance of ConstructorNotAppliedError.
Constructor Details
#initialize(method_name, constructor_name) ⇒ ConstructorNotAppliedError
Returns a new instance of ConstructorNotAppliedError.
24 25 26 27 28 29 |
# File 'lib/dry/monads/errors.rb', line 24 def initialize(method_name, constructor_name) super( "For calling .#{method_name} on #{constructor_name}() build a value "\ "by appending parens: #{constructor_name}()" ) end |