Class: MatchData

Inherits:
Object
  • Object
show all
Defined in:
sig/matchdata_ext.rbs

Overview

Extension to MatchData for indexed access with Integer

Instance Method Summary collapse

Instance Method Details

#[]String

Override [] to return non-nil String for Integer index (when we know the group exists)

Parameters:

  • index (Integer)

Returns:

  • (String)


5
# File 'sig/matchdata_ext.rbs', line 5

def []: (Integer index) -> String