struct Liquid::Context

Defined in:

liquid/context.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(strict : Bool = false) #

[View source]

Instance Method Detail

def [](key : String) : JSON::Any #

[View source]
def []=(key, value) #

[View source]
def []?(key : String) : JSON::Any | Nil #

[View source]
def get(key, strict : Bool = @strict) #

key can include . (property/method access) and/or [] (array index)


[View source]
def index_error(key, strict : Bool) #

[View source]
def key_missing(key, strict : Bool) #

[View source]
def parse_error(key, strict : Bool, message : String | Nil = nil) #

[View source]
def set(key, val) #

alias for []=(key, val)


[View source]
def strict : Bool #

[View source]
def strict=(strict : Bool) #

[View source]