# File rexml/functions.rb, line 142 def Functions::substring_before( string, test ) string[ 0...string.index(test) ] end