class

KrikriJinja::Undefined

Inherits Reference < Object

Marker for undefined variables, mirroring Jinja's Undefined behavior: stringifies to "", is falsy, fails is none, and raises on operations.

Constructors

new(name : String | Nil = nil, chainable : Bool = false)
Source

Instance methods

==(other : Undefined) : Bool
Source
==(other) : Bool

Returns false (other can only be a Value here).

Source
chainable

Ansible's own Undefined is CHAINABLE: reaching an attribute or item of an undefined value yields another undefined instead of raising, so x | default(other.thing.y) stays lazy when x is defined. Jinja2's own default is not chainable and raises on the spot.

Source
chainable=(chainable : Bool)

Ansible's own Undefined is CHAINABLE: reaching an attribute or item of an undefined value yields another undefined instead of raising, so x | default(other.thing.y) stays lazy when x is defined. Jinja2's own default is not chainable and raises on the spot.

Source
hint

Jinja's undefined hint: the whole error message when the value is undefined for a more specific reason than a missing name (a missing attribute or key).

Source
hint=(hint : String | Nil)

Jinja's undefined hint: the whole error message when the value is undefined for a more specific reason than a missing name (a missing attribute or key).

Source
name
Source
name=(name : String | Nil)
Source
strict?
Source