Method: Fabychy::Errors::InvalidParamTypeError#initialize
- Defined in:
-
lib/fabychy.rb,
lib/fabychy/user.rb
Returns a new instance of InvalidParamTypeError.
54 55 56 |
# File 'lib/fabychy.rb', line 54 def initialize(parameter, current_type, allowed_types) super("Invalid parameter type: `#{parameter}`: `#{current_type}`. Allowed types: #{allowed_types.each { |type| type.class.to_s }.join(',')}.") end |