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"


4044
4045
4046
# File 'lib/source/ruby.rb', line 4044

def to_s
  `this.__captures__[0]`
end