Exception: Nanoc::MutableDocumentViewMixin::DisallowedAttributeValueError Private
- Inherits:
-
Error
- Object
- StandardError
- Error
- Nanoc::MutableDocumentViewMixin::DisallowedAttributeValueError
- Defined in:
- lib/nanoc/base/views/mixins/mutable_document_view_mixin.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(value) ⇒ DisallowedAttributeValueError
constructor
private
A new instance of DisallowedAttributeValueError.
- #message ⇒ Object private
Constructor Details
#initialize(value) ⇒ DisallowedAttributeValueError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DisallowedAttributeValueError.
7 8 9 |
# File 'lib/nanoc/base/views/mixins/mutable_document_view_mixin.rb', line 7 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 |
# File 'lib/nanoc/base/views/mixins/mutable_document_view_mixin.rb', line 5 def value @value end |
Instance Method Details
#message ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/nanoc/base/views/mixins/mutable_document_view_mixin.rb', line 11 def "The #{value.class} cannot be stored inside an attribute. Store its identifier instead." end |