def to_pattern(**options)
      input   = self if PRIMITIVES.any? { |p| self.is_a? p }
      input ||= __getobj__ if respond_to?(:__getobj__)
      Mustermann.new(input || to_s, **options)
    end
def to_pattern(**options)
      input   = self if PRIMITIVES.any? { |p| self.is_a? p }
      input ||= __getobj__ if respond_to?(:__getobj__)
      Mustermann.new(input || to_s, **options)
    end
Converts the object into a {Mustermann::Pattern}.

 @example converting a string
   ":name.png".to_pattern # => #<Mustermann::Sinatra:":name.png">

 @example converting a string with options
   "/*path".to_pattern(type: :rails) # => #<Mustermann::Rails:"/*path">

 @example converting a regexp
   /.*/.to_pattern # => #<Mustermann::Regular:".*">

 @example converting a pattern
   Mustermann.new("foo").to_pattern # => #<Mustermann::Sinatra:"foo">

 @param [Hash] options The options hash.
 @return [Mustermann::Pattern] pattern corresponding to object.