class URITemplate::URIVariable
- URITemplate::URIVariable
- Reference
- Object
Defined in:
uri_template/variable.crConstructors
Instance Method Summary
- #==(other : URIVariable) : Bool
-
#expand(var_hash : Nil) : String
Return the original variable if the var_hash is nil
-
#expand(var_hash : VariableValueHash) : String
Expand this variable
- #explode_expansion(name : String, value : Array) : String
- #explode_expansion(name : String, value : Hash) : String
- #expr : BaseExpression
- #no_explode_expansion(name : String, value : Array | Hash)
- #original : String
-
#parse_expression(original) : Tuple(BaseExpression, String)
Parse variable into operator/expression struct and unsplit variable-list-string
-
#parse_varlist(variable_list_str)
Parse variable-list-string into variables with defaults, prefix and explode
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
-
#variable_expansion(name : String, value : ScalarVariableValue, prefix : Int32 | Nil) : String
single variable expansion for Scalar value
- #variable_names : Array(String)
Constructor Detail
Instance Method Detail
Parse variable into operator/expression struct and unsplit variable-list-string
Parse variable-list-string into variables with defaults, prefix and explode
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
.
single variable expansion for Scalar value