Ruby 初心者スレッド Part 28
■ このスレッドは過去ログ倉庫に格納されています
0132デフォルトの名無しさん
2009/05/22(金) 00:16:37> File.expand_path の第2引数の扱いは undocumented だからな
Converts a pathname to an absolute pathname. Relative paths are
referenced from the current working directory of the process unless
<i>dir_string</i> is given, in which case it will be used as the
starting point.
「dir_stringを始点として絶対パスに展開する」とちゃんと書いてあるだろ。
> 現在は File.exppand_path して File.dirname されているということを知ってる人がどれだけいるのやら
勝手にdirnameしてるわけではなくて、>>117は>>114より'..'が一つ多い。
■ このスレッドは過去ログ倉庫に格納されています