Ruby/File Directory/File SEPARATOR
Материал из Wiki.crossplatform.ru
Версия от 17:10, 26 мая 2010; (Обсуждение)
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")