るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.118秒)
トップページ > クエリ:i[x] > クエリ:-[x] > クエリ:at[x] > クエリ:uid[x] > クエリ:chown[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

クラス

検索結果

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

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

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

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

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

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

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

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