Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crystalizer
v1.1.6
Crystalizer
Any
Error
ByteFormat
Error
Deserializer
NamedTupleObject
Error
NonSelfDescribingObject
Object
Error
SelfDescribingObject
Field
Format
JSON
Any
Error
Type
Deserializer
Error
Serializer
Object
Serializer
Type
Variable
YAML
Any
Error
Type
Deserializer
Error
Serializer
Built with Crystal 1.9.2
2023-10-08 11:17:04 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
]