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.
43 44 45 46 47 |
# File 'lib/scheming/type.rb', line 43 def initialize(type) super() @type = type freeze end |
Instance Attribute Details
#type ⇒ Scheming::Type::Base (readonly)
40 41 42 |
# File 'lib/scheming/type.rb', line 40 def type @type end |