Class: Type::Definition::Scalar

Inherits:
Object
  • Object
show all
Includes:
Type::Definition
Defined in:
lib/type/definition/scalar.rb

Overview

The Scalar Class is an implementation of Definition interface that takes 100% of implementation from the base. This is to differentiate it from Collection, which has additional constraints.

Instance Attribute Summary

Attributes included from Type::Definition

#name

Method Summary

Methods included from Type::Definition

#cast!, included, #initialize, #nilable, #nilable?, #refine, #to_proc, #to_s, #valid?