Module: Sidewalk::Oniguruma::MatchData

Defined in:
lib/sidewalk/regexp.rb

Instance Method Summary collapse

Instance Method Details

#namesObject



4
5
6
7
8
9
10
# File 'lib/sidewalk/regexp.rb', line 4

def names
  if @named_captures
    @named_captures.keys.map(&:to_s)
  else
    []
  end
end