Exception: HumanAttributes::Error::InvalidType

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/human_attributes/errors.rb

Instance Method Summary collapse

Constructor Details

#initializeInvalidType

Returns a new instance of InvalidType.



28
29
30
31
# File 'lib/human_attributes/errors.rb', line 28

def initialize
  types = HumanAttributes::Config::TYPES.map { |t| t[:name] }
  super("type needs to be one of: #{types.join(', ')}")
end