Exception: OdfCore::Error::NotAllowedAttribute
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OdfCore::Error::NotAllowedAttribute
- Defined in:
- lib/odf_core/error/not_allowed_attribute.rb
Instance Method Summary collapse
-
#initialize(parent_element_class, attribute_name) ⇒ NotAllowedAttribute
constructor
A new instance of NotAllowedAttribute.
Constructor Details
#initialize(parent_element_class, attribute_name) ⇒ NotAllowedAttribute
Returns a new instance of NotAllowedAttribute.
4 5 6 7 8 |
# File 'lib/odf_core/error/not_allowed_attribute.rb', line 4 def initialize(parent_element_class, attribute_name) = "`#{attribute_name}` is not a valid attribute for `#{parent_element_class}`" super() end |