Exception: Integrative::Errors::IntegrationDefinitionMissingError
- Inherits:
-
IntegratorError
- Object
- StandardError
- IntegratorError
- Integrative::Errors::IntegrationDefinitionMissingError
- Defined in:
- lib/integrative/errors.rb
Instance Attribute Summary
Attributes inherited from IntegratorError
Instance Method Summary collapse
-
#initialize(integrator, names) ⇒ IntegrationDefinitionMissingError
constructor
A new instance of IntegrationDefinitionMissingError.
Constructor Details
#initialize(integrator, names) ⇒ IntegrationDefinitionMissingError
Returns a new instance of IntegrationDefinitionMissingError.
67 68 69 70 71 72 73 |
# File 'lib/integrative/errors.rb', line 67 def initialize(integrator, names) = "You tried to call `integrate` on a class #{integrator.name}" + " but this class doesn't have this integration." + " add the following line to the class #{integrator.name}:" + " 'integrates :#{names.join(', :')}'" super(, integrator) end |