Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > rexmlライブラリ > REXML::Sourceクラス > match_to_consume
match_to_consume(char, pattern)