class Addressable::Template

def ordered_variable_defaults

Experimental RBS support (using type sampling data from the type_fusion project).

def ordered_variable_defaults: () -> untyped

This signature was generated using 4 samples from 1 application.

def ordered_variable_defaults
  @ordered_variable_defaults ||= begin
    expansions, _ = parse_template_pattern(pattern)
    expansions.flat_map do |capture|
      _, _, varlist = *capture.match(EXPRESSION)
      varlist.split(',').map do |varspec|
        varspec[VARSPEC, 1]
      end
    end
  end
end