URITemplate::URIVariable
Inherits Reference < Object
Constructors
new(original : String)
SourceInstance methods
==(other : URIVariable) : Bool
Sourceexplode_expansion(name : String, value : Array) : String
Sourceexplode_expansion(name : String, value : Hash) : String
Sourceexpr
Sourceno_explode_expansion(name : String, value : Array | Hash)
Sourceoriginal
Sourceparse_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
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.
variable_expansion(name : String, value : ScalarVariableValue, prefix : Int32 | Nil) : String
single variable expansion for Scalar value
variable_names
Source