るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.153秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle align_size_t

ライブラリ

クラス

検索結果

File::Stat#nlink -> Integer (21214.0)

ハードリンクの数を返します。

...ハードリンクの数を返します。

//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.nlink #=> 1
//}...

Pathname#unlink -> Integer (6207.0)

self が指すディレクトリあるいはファイルを削除します。

...self が指すディレクトリあるいはファイルを削除します。

//emlist[例][ruby]{
require "pathname"

pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}...