class

KrikriJinja::AnyValue

Inherits Reference < Object

Render-time values: a JSON::Any-style wrapper so arrays/hashes can hold arbitrary values (Crystal cannot express recursive type aliases).

Constructors

new(raw : AnyV)
Source
pair(a : AnyV, b : AnyV) : AnyValue
Source
wrap(x : AnyV | AnyValue) : AnyValue
Source
wrap_deep(x : AnyV | AnyValue) : AnyValue

Boxes a raw value deeply (arrays/hashes get boxed element-wise).

Source

Instance methods