Class: URITemplate::RFC6570::Expression::Fragment
- Inherits:
-
Unnamed
- Object
- Token
- URITemplate::RFC6570::Expression
- Unnamed
- URITemplate::RFC6570::Expression::Fragment
- Defined in:
- lib/uri_template/rfc6570/expression.rb
Constant Summary collapse
- CHARACTER_CLASS =
- PREFIX =
'#'.freeze
- OPERATOR =
'#'.freeze
- BASE_LEVEL =
2
- FOLLOW_UP =
Expression::Reserved
- BULK_FOLLOW_UP =
Expression::Reserved
Constants inherited from URITemplate::RFC6570::Expression
LIST_CONNECTOR, PAIR_CONNECTOR, PAIR_IF_EMPTY, SEPARATOR
Constants included from Token
Instance Attribute Summary
Attributes inherited from URITemplate::RFC6570::Expression
Attributes included from Expression
Instance Method Summary collapse
Methods inherited from Unnamed
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
Methods included from Token
#ends_with_slash?, #expand, #expand_partial, #host?, #scheme?, #size, #starts_with_slash?, #to_s, #variables
Constructor Details
This class inherits a constructor from URITemplate::RFC6570::Expression
Instance Method Details
#escape(x) ⇒ Object
331 332 333 |
# File 'lib/uri_template/rfc6570/expression.rb', line 331 def escape(x) Utils.escape_uri(Utils.object_to_param(x)) end |
#unescape(x) ⇒ Object
335 336 337 |
# File 'lib/uri_template/rfc6570/expression.rb', line 335 def unescape(x) Utils.unescape_uri(x) end |