Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > class MatchData > string

instance method MatchData#string

string -> String

マッチ対象になった文字列の複製を返します。

返す文字列はフリーズ(Object#freeze)されています。