rubyx/test/support/preloader.rb
Torsten Rüger 1022390e0f check for redefining of methods and forbid
causing some test problems, but better that way (until it's done right off course)
2019-09-24 21:20:12 +03:00

15 lines
332 B
Ruby

module Preloader
def get_preload(preload)
return "" unless preload
if( preload == "all" )
loading = Vool::Builtin.builtin.keys
else
loading = preload.split(";")
end
loading.collect { |loads| Vool::Builtin.load_builtin(loads)}.join(";") + ";"
end
def preload
get_preload(@preload)
end
end