• dry-rb
  • Gems / Docs
    • dry-auto_inject
    • dry-cli
    • dry-configurable
    • dry-container
    • dry-core
    • dry-effects
    • dry-equalizer
    • dry-events
    • dry-files
    • dry-inflector
    • dry-initializer
    • dry-logger
    • dry-logic
    • dry-matcher
    • dry-monads
    • dry-monitor
    • dry-operation
    • dry-rails
    • dry-schema
    • dry-struct
    • dry-system
    • dry-transaction
    • dry-transformer
    • dry-types
    • dry-validation
    • dry-view
  • Status
  • News
  • Community

  • Github

dry-types main

View dry-types on GitHub

Version:

  • Introduction
  • Getting Started
  • Built-in Types
  • Type Attributes
  • Default Values
  • Fallbacks
  • Constraints
  • Hash Schemas
  • Array With Member
  • Enum
  • Map
  • Combining Types
    • Intersection
    • Sum
  • Custom Types
  • Custom Type Builders
  • Extensions
    • Maybe
    • Monads

Combining Types

Types can be combined to create new types, using intersection types to further restrict values, and sum types to allow more acceptable values.

octocatEdit on GitHub

  • Gems
  • Community
  • Code
  • Discussion
  • Chat
  • Twitter

Website made with love by Icelab.

Found a typo? Want to add something?
Send us an issue or a pull-request at GitHub.