Registry / utility / dry-types

dry-types

JSON →
library1.9.1rbrubygemsunverified

A type system for Ruby supporting coercions, constraints, and complex types like structs, value objects, and enums.

gem install dry-types
INSTALL
IMPORT
SIG · DRY-TYPES
D
dry-types
utilityrubyv1.9.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dry::Types
require 'dry/types'

Define and use a coercible integer type

require 'dry/types' module Types include Dry.Types() end age = Types::Coercible::Integer.optional puts age[42]
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.9.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
dry-types — gem install dry-types · libregistry