Class: Scheming::Type::Nullable
Overview
Nullable Type Definition
Type wrapper that describes a type can be either the type provided OR it may be Null
Instance Attribute Summary collapse
- #type ⇒ Scheming::Type::Base readonly
Instance Method Summary collapse
-
#initialize(type) ⇒ Nullable
constructor
A new instance of Nullable.
Constructor Details
#initialize(type) ⇒ Nullable
Returns a new instance of Nullable.
73 74 75 76 77 |
# File 'lib/scheming/type.rb', line 73 def initialize(type) super() @type = type freeze end |
Instance Attribute Details
#type ⇒ Scheming::Type::Base (readonly)
70 71 72 |
# File 'lib/scheming/type.rb', line 70 def type @type end |