struct Crinja::Arguments
- Crinja::Arguments
- Struct
- Value
- Object
Overview
This holds arguments and environment information for function, filter, test and macro calls.
Defined in:
arguments.crConstructors
Instance Method Summary
- #[](name : String) : Value
- #default(name : Symbol)
- #default(name : String)
-
#defaults : Variables
Default argument values defined by the call implementation.
-
#env : Crinja
Returns the crinja environment.
- #fetch(name, default : Value)
- #fetch(name, default = nil)
- #fetch(name, &)
- #is_set?(name : Symbol)
- #is_set?(name : String)
-
#kwargs : Hash(String, Value)
Returns the keyword arguments of the call.
-
#target : Value?
Returns the target of the call (if any).
- #target!
- #to_h
-
#varargs : Array(Value)
Returns the variable arguments of the call.
Constructor Detail
def self.new(env : Crinja, varargs : Array(Crinja::Value) = [] of Value, kwargs : Hash(String, Crinja::Value) = Hash(String, Value).new, defaults : Hash(String, Crinja::Value) = Variables.new, target : Crinja::Value? = nil)
#
Instance Method Detail
Default argument values defined by the call implementation.