Sha256: 00f6a717ca5afa41a2e5a65494fa52bf696a86e2cadf3def693df6d8eb59bc80

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

class MatchData

  # Return the primary match string. This is equivalent to +md[0]+.
  #
  #   md = /123/.match "123456"
  #   md.match  #=> "123"
  #
  #   TODO: Is MatchData#match really worth having? It's kind of confusing w/ Regexp#match.
  #
  #   CREDIT: Trans

  def match
    self[0]
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.2.1 lib/core/facets/matchdata/match.rb
facets-2.3.0 lib/core/facets/matchdata/match.rb