Module: URITemplate::Expression

Includes:
Token
Included in:
Colon::Token::Variable, RFC6570::Expression
Defined in:
lib/uri_template/expression.rb

Overview

A module which all non-literal tokens should include.

Constant Summary

Constants included from Token

Token::EMPTY_ARRAY

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Token

#ends_with_slash?, #expand, #expand_partial, #host?, #scheme?, #size, #starts_with_slash?, #to_s

Instance Attribute Details

#variablesObject (readonly)

Returns the value of attribute variables.



29
30
31
# File 'lib/uri_template/expression.rb', line 29

def variables
  @variables
end

Instance Method Details

#expression?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/uri_template/expression.rb', line 35

def expression?
  true
end

#literal?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/uri_template/expression.rb', line 31

def literal?
  false
end