class

Liquid::Any

Inherits Reference / Object

Constructors

new(any : Any)
Source

Instance methods

[](index : Int) : Any
Source
[](key : Type) : Any

Assumes the underlying value is a Hash and returns the element with the given key. Raises if the underlying value is not a Hash.

Source
[]=(key : String | Int, value : Type) : Type
Source
[]?(key : Type) : Any
Source
compare(op : String, other : Any)
Source
each
Source
has_key?(key : Type)
Source
include?(other : Any)
Source
iterable?
Source
non_blank_string?
Source
to_i
Source
to_liquid
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
uninitialized?
Source