module URITemplate::Literal
A module which all literal tokens should include.
Constants
- SLASH
Attributes
string[R]
to_s[R]
Public Instance Methods
ends_with_slash?()
click to toggle source
# File lib/uri_template/literal.rb, line 56 def ends_with_slash? string[-1] == SLASH end
expand(_)
click to toggle source
# File lib/uri_template/literal.rb, line 44 def expand(_) return string end
expand_partial(_)
click to toggle source
# File lib/uri_template/literal.rb, line 48 def expand_partial(_) return [self] end
expression?()
click to toggle source
# File lib/uri_template/literal.rb, line 36 def expression? false end
literal?()
click to toggle source
# File lib/uri_template/literal.rb, line 32 def literal? true end
size()
click to toggle source
# File lib/uri_template/literal.rb, line 40 def size 0 end
starts_with_slash?()
click to toggle source
# File lib/uri_template/literal.rb, line 52 def starts_with_slash? string[0] == SLASH end