Exception: Alchemy::ElementDefinitionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/alchemy/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ ElementDefinitionError

Raised if element definition can not be found.


39
40
41
# File 'lib/alchemy/errors.rb', line 39

def initialize(attributes)
  @name = attributes[:name]
end

Instance Method Details

#messageObject


43
44
45
# File 'lib/alchemy/errors.rb', line 43

def message
  "Element definition for #{@name} not found. Please check your elements.yml"
end