Class: Typed::Builder::DefaultType
- Inherits:
-
Object
- Object
- Typed::Builder::DefaultType
- Includes:
- BaseType
- Defined in:
- lib/typed/builder.rb
Instance Method Summary collapse
-
#initialize(base_type, &default_value) ⇒ DefaultType
constructor
A new instance of DefaultType.
- #process(value) ⇒ Object
Methods included from BaseType
#call, #constrained, #constructor, #default, #enum, #instance, #missable, #nullable, #|
Constructor Details
#initialize(base_type, &default_value) ⇒ DefaultType
Returns a new instance of DefaultType.
168 169 170 171 |
# File 'lib/typed/builder.rb', line 168 def initialize(base_type, &default_value) @base_type = base_type @default_value = default_value end |