class

Marten::Template::Value

Inherits Enumerable / Comparable / Reference / Object

A template value.

Constructors

new(raw : Raw)
Source

Class methods

from(raw)
Source

Instance methods

<=>(other : Value)
Source
==(other : Value)
Source
==(other)

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

Source
[](key : String) : Value
Source
each

Must yield this collection's elements to the block.

Source
empty?

Returns true if the value is empty.

Source
raw

Returns the raw value associated with the template value.

Source
truthy?

ReturnsĀ true if the value is truthy (ie. if it is not false, 0, or nil).

Source

Nested types