class Addressable::Template

def initialize(pattern)

Returns:
  • (Addressable::Template) - The initialized Template object.

Parameters:
  • pattern (#to_str) -- The URI Template pattern.
def initialize(pattern)
  if !pattern.respond_to?(:to_str)
    raise TypeError, "Can't convert #{pattern.class} into String."
  end
  @pattern = pattern.to_str.dup.freeze
end