Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crystalizer
v1.0.0
Crystalizer
Any
Error
ByteFormat
Error
Deserializer
NamedTuple
Error
NonSelfDescribingObject
Object
Error
SelfDescribingObject
Field
JSON
Any
Error
Type
Error
Object
Variable
YAML
Any
Error
Type
Error
Built with Crystal 1.9.2
2023-10-07 23:31:10 UTC
struct
Crystalizer::Variable(T, A)
Crystalizer::Variable(T, A)
Struct
Value
Object
Overview
Holds variable metadata with its annotations.
Defined in:
variable.cr
Constructors
.new
(type :
T
.
class
, annotations : A, nilable : Bool, has_default : Bool)
Instance Method Summary
#annotations
: A
#has_default
: Bool
#nilable
: Bool
#type
:
T
.
class
Constructor Detail
def self.
new
(type :
T
.
class
, annotations : A, nilable : Bool, has_default : Bool)
#
[
View source
]
Instance Method Detail
def
annotations
: A
#
[
View source
]
def
has_default
: Bool
#
[
View source
]
def
nilable
: Bool
#
[
View source
]
def
type
:
T
.
class
#
[
View source
]