Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > rexmlライブラリ > REXML::Functionsモジュール > substring_before
substring_before(string, test)