るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.025秒)
トップページ > バージョン:2.3.0[x] > クエリ:File[x] > クエリ:un[x] > ライブラリ:shell/command-processor[x]

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file open
  4. file chown
  5. file path

クラス

キーワード

検索結果

Shell::CommandProcessor#truncate(path, length) -> 0 (18373.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate

Shell::CommandProcessor#unlink(path) -> self (18373.0)

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

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

@param path 削除したいパスを指定します。

@see File.unlink, Dir.unlink