Exception: HumanAttributes::Error::InvalidType
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- HumanAttributes::Error::InvalidType
- Defined in:
- lib/human_attributes/errors.rb
Instance Method Summary collapse
-
#initialize ⇒ InvalidType
constructor
A new instance of InvalidType.
Constructor Details
#initialize ⇒ InvalidType
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 |