class MatchData

Public Instance Methods

match(index) click to toggle source
# File lib/backports/3.1.0/match_data/match.rb, line 2
def match(index)
  self[index]
end
match_length(index) click to toggle source
# File lib/backports/3.1.0/match_data/match_length.rb, line 2
def match_length(index)
  m = self[index]
  m && m.length
end