class Addressable::Template

def ordered_variable_defaults

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

def ordered_variable_defaults: () -> Array[]

This signature was generated using 88 samples from 3 applications.

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