Object
Returns a String representation of the MatchData’s state.
@return [String] The MatchData’s state, as a String.
# File lib/addressable/template.rb, line 117
117: def inspect
118: sprintf("#<%s:%#0x RESULT:%s>",
119: self.class.to_s, self.object_id, self.mapping.inspect)
120: end
@return [Array]
The list of values that were captured by the Template. Note that this list will include nils for any variables which were in the Template, but did not appear in the URI.
# File lib/addressable/template.rb, line 105
105: def values
106: @values ||= self.variables.inject([]) do |accu, key|
107: accu << self.mapping[key]
108: accu
109: end
110: end
@return [Array]
The list of variables that were present in the Template. Note that this list will include variables which do not appear in the mapping because they were not present in URI.
# File lib/addressable/template.rb, line 95
95: def variables
96: self.template.variables
97: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.