class

URITemplate::URIVariable

Inherits Reference < Object

Constructors

new(original : String)
Source

Instance methods

==(other : URIVariable) : Bool
Source
expand(var_hash : Nil) : String

Return the original variable if the var_hash is nil

Source
expand(var_hash : VariableValueHash) : String

Expand this variable

Source
explode_expansion(name : String, value : Array) : String
Source
explode_expansion(name : String, value : Hash) : String
Source
expr
Source
no_explode_expansion(name : String, value : Array | Hash)
Source
original
Source
parse_expression(original) : Tuple(BaseExpression, String)

Parse variable into operator/expression struct and unsplit variable-list-string

Source
parse_varlist(variable_list_str)

Parse variable-list-string into variables with defaults, prefix and explode

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
variable_expansion(name : String, value : ScalarVariableValue, prefix : Int32 | Nil) : String

single variable expansion for Scalar value

Source
variable_names
Source