るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.017秒)
トップページ > バージョン:2.4.0[x] > クエリ:Dir[x] > クラス:Shell[x] > クエリ:open[x]

別のキーワード

  1. dir open
  2. dir foreach
  3. dir chdir
  4. dir each_child
  5. rake original_dir

ライブラリ

検索結果

Shell#open(path, mode) -> File | Dir (54808.0)

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

@param path 開きたいパスを指定します。

@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。

@see File.open, Dir.open