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