Ruby 初心者スレッド Part 28 at TECH
[2ch|▼Menu]
132:デフォルトの名無しさん
09/05/22 00:16:37
>>118
> 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より'..'が一つ多い。



次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5380日前に更新/107 KB
担当:undef