Include Symbol coercions in docs about built-in types

This commit is contained in:
Juan 2020-01-26 19:06:27 +01:00 committed by GitHub
parent ad677a5f3d
commit 5c69c22975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ Types::Strict::Integer['1'] # => raises Dry::Types::ConstraintError
* `Coercible` types will attempt to cast values to the correct class using kernel coercion methods:
- `Types::Coercible::String`
- `Types::Coercible::Symbol`
- `Types::Coercible::Integer`
- `Types::Coercible::Float`
- `Types::Coercible::Decimal`
@ -83,6 +84,7 @@ Types::Strict::Integer['1'] # => raises Dry::Types::ConstraintError
* Types suitable for `JSON` processing with coercions:
- `Types::JSON::Nil`
- `Types::JSON::Symbol`
- `Types::JSON::Date`
- `Types::JSON::DateTime`
- `Types::JSON::Time`