Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > rexmlライブラリ > REXML::Textクラス > write_with_substitution
write_with_substitution(out, input)