lib/parlour/rbi_generator/parameter.rb
# The name of this parameter, stripped of any prefixes or suffixes. For
# example, +*rest+ would become +rest+, or +foo:+ would become +foo+.
#
# @return [String]
The name of this parameter, stripped of any prefixes or suffixes.
The name of this parameter stripped of any prefixes or suffixes .
def name_without_kind
        return T.must(name[0..-2]) if kind == :keyword
        prefix_match = /^(\*\*|\*|\&)?[a-zA-Z_]/.match(name)
        raise 'unknown prefix' unless prefix_match
        prefix = prefix_match.captures.first || ''
        T.must(name[prefix.length..-1])
      end
def name_without_kind return T . must ( name [ 0 .. - 2 ] ) if kind == :keyword prefix_match = / ^( \* \* | \* | \& )?[a-zA-Z_] / . match ( name ) raise 'unknown prefix' unless prefix_match prefix = prefix_match . captures . first || '' T . must ( name [ prefix . length .. - 1 ] ) end
The name of this parameter, stripped of any prefixes or suffixes.
The name of this parameter stripped of any prefixes or suffixes .
None
String