るりまサーチ (Ruby 2.7.0)

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

別のキーワード

  1. socket int
  2. prime int_from_prime_division
  3. _builtin to_int
  4. mkmf convertible_int
  5. option int

ライブラリ

クラス

検索結果

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

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

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

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

Pathname#unlink -> Integer (9604.0)

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

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

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

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