class Type::CastError

Type::CastError is the raised class of Type::Definition#cast!

Public Instance Methods

message() click to toggle source
# File lib/type/error.rb, line 28
def message
  "Could not cast #{input.inspect} with #{type_definition}."
end