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.
8 9 10 |
# File 'lib/machinist/exceptions.rb', line 8 def initialize(blueprint) @blueprint = blueprint end |
Instance Attribute Details
#blueprint ⇒ Object (readonly)
Returns the value of attribute blueprint.
6 7 8 |
# File 'lib/machinist/exceptions.rb', line 6 def blueprint @blueprint end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/machinist/exceptions.rb', line 12 def "make! is not supported by blueprints for class #{@blueprint.klass.name}" end |