Exception: Holotype::Attribute::Definition::NoValueClassError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/holotype/attribute/definition/no_value_class_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition) ⇒ NoValueClassError

Returns a new instance of NoValueClassError.



7
8
9
# File 'lib/holotype/attribute/definition/no_value_class_error.rb', line 7

def initialize definition
  @definition = definition
end

Instance Attribute Details

#definitionObject (readonly)

Returns the value of attribute definition.



5
6
7
# File 'lib/holotype/attribute/definition/no_value_class_error.rb', line 5

def definition
  @definition
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/holotype/attribute/definition/no_value_class_error.rb', line 11

def message
  "No value class for attribute definition: #{definition.name}".freeze
end