Enter your search terms
GNU-Darwin
Web
Submit search form
def
Functions::substring_before( string, test ) ruby_string = string(string) ruby_index = ruby_string.index(string(test))
if
ruby_index.nil?
""
else
ruby_string[ 0...ruby_index ]
end
end