るりまサーチ

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

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer new
  5. integer digits

ライブラリ

クラス

検索結果

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

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

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

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

Pathname#unlink -> Integer (3203.0)

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

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

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

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