Exception: Machinist::BlueprintCantSaveError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Machinist::BlueprintCantSaveError
- Defined in:
- lib/machinist/exceptions.rb
Overview
Raised when make! is called on a class whose blueprints don’t support saving.
Instance Attribute Summary collapse
-
#blueprint ⇒ Object
readonly
Returns the value of attribute blueprint.
Instance Method Summary collapse
-
#initialize(blueprint) ⇒ BlueprintCantSaveError
constructor
A new instance of BlueprintCantSaveError.
- #message ⇒ Object
Constructor Details
#initialize(blueprint) ⇒ BlueprintCantSaveError
Returns a new instance of BlueprintCantSaveError.
7 8 9 |
# File 'lib/machinist/exceptions.rb', line 7 def initialize(blueprint) @blueprint = blueprint end |
Instance Attribute Details
#blueprint ⇒ Object (readonly)
Returns the value of attribute blueprint.
5 6 7 |
# File 'lib/machinist/exceptions.rb', line 5 def blueprint @blueprint end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/machinist/exceptions.rb', line 11 def "make! is not supported by blueprints for class #{@blueprint.klass.name}" end |