るりまサーチ

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

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer upto
  5. integer chr

ライブラリ

クラス

キーワード

検索結果

<< 1 2 > >>

IO#pathconf(name) -> Integer | nil (6202.0)

fpathconf(3) で取得したファイルの設定変数の値を返します。

...fpathconf(3) で取得したファイルの設定変数の値を返します。

引数 name が制限に関する設定値であり、設定が制限がない状態の場合は nil
を返します。(fpathconf(3) が -1 を返し、errno が設定されていない
場合)

@param name Etc モジ...
...ュールの PC_ で始まる定数のいずれかを指定します。

//emlist[][ruby]{
require 'etc'
IO.pipe {|r, w|
p w.pathconf(Etc::PC_PIPE_BUF) # => 4096
}
//}...

Pathname#delete -> Integer (3109.0)

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

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

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

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

Pathname#unlink -> Integer (3109.0)

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

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

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

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

Pathname#binwrite(string, offset=nil) -> Integer (3102.0)

IO.binwrite(self.to_s, *args)と同じです。

IO.binwrite(self.to_s, *args)と同じです。


@see IO.binwrite

Pathname#chmod(mode) -> Integer (3102.0)

File.chmod(mode, self.to_s) と同じです。

File.chmod(mode, self.to_s) と同じです。

@param mode ファイルのアクセス権限を整数で指定します。


@see File.chmod

絞り込み条件を変える

Pathname#chown(owner, group) -> Integer (3102.0)

File.chown(owner, group, self.to_s) と同じです。

...

@param owner オーナーを指定します。

@param group グループを指定します。

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

Path
name('testfile').stat.uid # => 501
Path
name('testfile').chown(502, 12)
Path
name('testfile').stat.uid # => 502
//}

@see File.chown, File#chown...

Pathname#hash -> Integer (3102.0)

ハッシュ値を返します。

ハッシュ値を返します。

Pathname#lchmod(mode) -> Integer (3102.0)

File.lchmod(mode, self.to_s) と同じです。

File.lchmod(mode, self.to_s) と同じです。

@param mode ファイルのアクセス権限を整数で指定します。


@see File.lchmod

Pathname#lchown(owner, group) -> Integer (3102.0)

File.lchown(owner, group, self.to_s) と同じです。

File.lchown(owner, group, self.to_s) と同じです。

@param owner オーナーを指定します。

@param group グループを指定します。


@see File.lchown
<< 1 2 > >>