class Cattri::AttributeRegistry
def apply_definition!(attribute)
-
(Cattri::AttributeError)
-
Returns:
-
(void)
-
Parameters:
-
attribute
(Cattri::Attribute
) --
def apply_definition!(attribute) Cattri::AttributeCompiler.define_accessor(attribute, context) rescue StandardError => e raise Cattri::AttributeError, "Attribute #{attribute.name} could not be defined. Error: #{e.message}" end