Exception: Holotype::Attribute::Definition::NoCollectionClassError
- Inherits:
-
StandardError
- Object
- StandardError
- Holotype::Attribute::Definition::NoCollectionClassError
- Defined in:
- lib/holotype/attribute/definition/no_collection_class_error.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
Instance Method Summary collapse
-
#initialize(definition) ⇒ NoCollectionClassError
constructor
A new instance of NoCollectionClassError.
- #message ⇒ Object
Constructor Details
#initialize(definition) ⇒ NoCollectionClassError
Returns a new instance of NoCollectionClassError.
7 8 9 |
# File 'lib/holotype/attribute/definition/no_collection_class_error.rb', line 7 def initialize definition @definition = definition end |
Instance Attribute Details
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
5 6 7 |
# File 'lib/holotype/attribute/definition/no_collection_class_error.rb', line 5 def definition @definition end |
Instance Method Details
#message ⇒ Object
11 12 13 14 |
# File 'lib/holotype/attribute/definition/no_collection_class_error.rb', line 11 def "No collection class for attribute definition: #{definition.name}" .freeze end |