Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library _builtin > object ENV > replace
replace(hash) -> ENV
環境変数を hash と同じ内容に変更します。 self を返します。