摘要: current file's pathputs "File.dirname(__FILE__) == #{File.dirname(__FILE__)}"current work directory$CurrentDir = Dir.pwd# Parent of current work directoryFile.expand_path("..",Dir.pwd)puts File.expand_path('../.') 阅读全文
posted @ 2013-03-22 17:10 小楼 阅读(175) 评论(0) 推荐(0) 编辑