Sha256: 5b0b4a9b9344d2d24feab76eaf8967d8a5028380f2248c3e272f13c21b8a4c2b

Contents?: true

Size: 228 Bytes

Versions: 20

Compression:

Stored size: 228 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

20 entries across 19 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/matchdata/match.rb
facets-3.1.0 lib/core/facets/matchdata/match.rb
facets-3.0.0 lib/core/facets/matchdata/match.rb
facets-2.9.3 lib/core/facets/matchdata/match.rb
facets-2.9.2 lib/core/facets/matchdata/match.rb
facets-2.9.2 src/core/facets/matchdata/match.rb
facets-2.9.1 lib/core/facets/matchdata/match.rb
facets-2.9.0 lib/core/facets/matchdata/match.rb
facets-2.9.0.pre.2 lib/core/facets/matchdata/match.rb
facets-2.9.0.pre.1 lib/core/facets/matchdata/match.rb
facets-2.8.4 lib/core/facets/matchdata/match.rb
facets-2.8.3 lib/core/facets/matchdata/match.rb
facets-2.8.2 lib/core/facets/matchdata/match.rb
facets-2.8.1 lib/core/facets/matchdata/match.rb
facets-2.8.0 lib/core/facets/matchdata/match.rb
facets-2.7.0 lib/core/facets/matchdata/match.rb
facets-2.6.0 lib/core/facets/matchdata/match.rb
facets-2.5.1 lib/core/facets/matchdata/match.rb
facets-2.5.0 lib/core/facets/matchdata/match.rb
facets-2.5.2 lib/core/facets/matchdata/match.rb