Sha256: 691473711e88544f204f3f33e0fe33a3d119cd353face128b032ae9405fbf138

Contents?: true

Size: 229 Bytes

Versions: 7

Compression:

Stored size: 229 Bytes

Contents

class MatchData

  # Return the primary match string. This is equivalent to +md[0]+.
  #
  #   md = /123/.match "123456"
  #   md.match  #=> "123"
  #
  #  CREDIT: Martin DeMello

  def match(index=0)
    self[index]
  end

end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
facets-2.4.0 lib/facets/matchdata/match.rb
facets-2.4.1 lib/facets/matchdata/match.rb
facets-2.4.2 lib/core/facets/matchdata/match.rb
facets-2.4.3 lib/core/facets/matchdata/match.rb
facets-2.4.4 lib/core/facets/matchdata/match.rb
facets-2.4.5 lib/core/facets/matchdata/match.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/matchdata/match.rb