class HumanAttributes::Error::InvalidType
Public Class Methods
new()
click to toggle source
Calls superclass method
# 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