Sha256: 269dc0a140b1b8b89882b7e3ce1d4b1b4c8bb3a32e1870fc1f88db7143d0649f

Contents?: true

Size: 211 Bytes

Versions: 1

Compression:

Stored size: 211 Bytes

Contents

class MatchData
  # Return the primary match, equivalent to +md[0]+.
  #
  #   require 'facet/matchdata/match'
  #
  #   md = /123/.match "123456"
  #   md.match  #=> "123"
  #
  def match
    self[0]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.6.3 lib/facet/matchdata/match.rb