Sha256: daa98b2c91c4a8dd95ed28656a19cf63a1c1df4147ec5c2019175c7b319a2e3e

Contents?: true

Size: 137 Bytes

Versions: 6

Compression:

Stored size: 137 Bytes

Contents

class MatchData
  def match_length(index)
    m = self[index]
    m && m.length
  end
end unless MatchData.method_defined? :match_length

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
backports-3.25.0 lib/backports/3.1.0/match_data/match_length.rb
backports-3.24.1 lib/backports/3.1.0/match_data/match_length.rb
backports-3.24.0 lib/backports/3.1.0/match_data/match_length.rb
backports-3.23.0 lib/backports/3.1.0/match_data/match_length.rb
backports-3.22.1 lib/backports/3.1.0/match_data/match_length.rb
backports-3.22.0 lib/backports/3.1.0/match_data/match_length.rb