2019-09-12 21:27:10 +02:00
|
|
|
module Preloader
|
|
|
|
def get_preload(preload)
|
|
|
|
return "" unless preload
|
2019-09-24 20:20:12 +02:00
|
|
|
if( preload == "all" )
|
|
|
|
loading = Vool::Builtin.builtin.keys
|
|
|
|
else
|
|
|
|
loading = preload.split(";")
|
|
|
|
end
|
|
|
|
loading.collect { |loads| Vool::Builtin.load_builtin(loads)}.join(";") + ";"
|
2019-09-12 21:27:10 +02:00
|
|
|
end
|
|
|
|
def preload
|
|
|
|
get_preload(@preload)
|
|
|
|
end
|
|
|
|
end
|