Exception: Nanoc::Core::MutableDocumentViewMixin::DisallowedAttributeValueError Private

Inherits:
Error
  • Object
show all
Defined in:
lib/nanoc/core/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

Instance Method Summary collapse

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.



10
11
12
# File 'lib/nanoc/core/mutable_document_view_mixin.rb', line 10

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (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.



8
9
10
# File 'lib/nanoc/core/mutable_document_view_mixin.rb', line 8

def value
  @value
end

Instance Method Details

#messageObject

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.



14
15
16
# File 'lib/nanoc/core/mutable_document_view_mixin.rb', line 14

def message
  "The #{value.class} cannot be stored inside an attribute. Store its identifier instead."
end