Method: MatchData#to_s

Defined in:
lib/source/ruby.rb

#to_sObject

call-seq:

mtch.to_s -> string

Returns the entire matched string.

m = /(.)(.)(\d+)(\d)/.match("THX1138.")

m.to_s    #=> "HX1138"


4019
4020
4021
# File 'lib/source/ruby.rb', line 4019

def to_s
  `this._captures[0]`
end