Exception: Alchemy::ElementDefinitionError
- Inherits:
-
StandardError
- Object
- StandardError
- Alchemy::ElementDefinitionError
- Defined in:
- lib/alchemy/errors.rb
Instance Method Summary collapse
-
#initialize(attributes) ⇒ ElementDefinitionError
constructor
Raised if element definition can not be found.
- #message ⇒ Object
Constructor Details
#initialize(attributes) ⇒ ElementDefinitionError
Raised if element definition can not be found.
29 30 31 |
# File 'lib/alchemy/errors.rb', line 29 def initialize(attributes) @name = attributes[:name] end |
Instance Method Details
#message ⇒ Object
33 34 35 |
# File 'lib/alchemy/errors.rb', line 33 def "Element definition for #{@name} not found. Please check your elements.yml" end |