Class: URITemplate::RFC6570::Expression::Reserved

Inherits:
Unnamed show all
Defined in:
lib/uri_template/rfc6570/expression.rb

Constant Summary collapse

CHARACTER_CLASS =
OPERATOR =
'+'.freeze
BASE_LEVEL =
2
FOLLOW_UP =
self
BULK_FOLLOW_UP =
self

Constants inherited from URITemplate::RFC6570::Expression

LIST_CONNECTOR, PAIR_CONNECTOR, PAIR_IF_EMPTY, PREFIX, SEPARATOR

Constants included from Token

Token::EMPTY_ARRAY

Instance Attribute Summary

Attributes inherited from URITemplate::RFC6570::Expression

#variables

Attributes included from Expression

#variables

Instance Method Summary collapse

Methods inherited from Unnamed

#self_pair, #to_r_source

Methods inherited from URITemplate::RFC6570::Expression

#arity, #expand, #expand_partial, #extract, #initialize, #level, #to_s

Methods included from ClassMethods

#generate_hash_extractor, #hash_extractor, #hash_extractors, #regex_builder

Methods included from Expression

#expression?, #literal?

Methods included from Token

#ends_with_slash?, #expand, #expand_partial, #size, #starts_with_slash?, #to_s, #variables

Constructor Details

This class inherits a constructor from URITemplate::RFC6570::Expression

Instance Method Details

#escape(x) ⇒ Object



304
305
306
# File 'lib/uri_template/rfc6570/expression.rb', line 304

def escape(x)
  Utils.escape_uri(Utils.object_to_param(x))
end

#host?Boolean

Returns:

  • (Boolean)


316
317
318
# File 'lib/uri_template/rfc6570/expression.rb', line 316

def host?
  true
end

#scheme?Boolean

Returns:

  • (Boolean)


312
313
314
# File 'lib/uri_template/rfc6570/expression.rb', line 312

def scheme?
  true
end

#unescape(x) ⇒ Object



308
309
310
# File 'lib/uri_template/rfc6570/expression.rb', line 308

def unescape(x)
  Utils.unescape_uri(x)
end