Ruby 初心者スレッド Part 28at TECH
Ruby 初心者スレッド Part 28 - 暇つぶし2ch132:デフォルトの名無しさん
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