Ruby/File Directory/File SEPARATOR
Материал из Wiki.crossplatform.ru
Версия от 17:57, 13 сентября 2010; ViGOur (Обсуждение | вклад)
OS independent
File.join(File::SEPARATOR , "full", "path", "here", "filename.txt")
use File.expand_path to turn basic filenames into complete paths
File.expand_path("text.txt")