class Addressable::Template
def expand(mapping, processor=nil, normalize_values=true)
-
(Addressable::URI)
- The expanded URI template.
Parameters:
-
normalize_values
(Boolean
) -- -
processor
(#validate, #transform
) -- -
mapping
(Hash
) -- The mapping that corresponds to the pattern.
def expand(mapping, processor=nil, normalize_values=true) result = self.pattern.dup mapping = normalize_keys(mapping) result.gsub!( EXPRESSION ) do |capture| transform_capture(mapping, capture, processor, normalize_values) end return Addressable::URI.parse(result) end