33件ヒット
[1-33件を表示]
(0.012秒)
別のキーワード
検索結果
先頭3件
-
FileUtils
. have _ option?(mid , opt) -> bool (6202.0) -
mid というメソッドが opt というオプションを持つ場合、真を返します。 そうでない場合は、偽を返します。
...mid というメソッドが opt というオプションを持つ場合、真を返します。
そうでない場合は、偽を返します。
@param mid メソッド名を指定します。
@param opt オプション名を指定します。... -
FileUtils
. options _ of(mid) -> Array (6202.0) -
与えられたメソッド名で使用可能なオプション名の配列を返します。
...与えられたメソッド名で使用可能なオプション名の配列を返します。
@param mid メソッド名を指定します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options_of(:rm) # => ["noop", "verbose", "force"]
//}... -
FileUtils
. # chmod(mode , list , options = {}) -> Array (108.0) -
ファイル list のパーミッションを mode に変更します。
...am options :noop と :verbose が指定可能です。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
# Absolute mode
require 'fileutils'
FileUtils.chmod(0644, %w(my.rb your.rb his.rb her.rb))
FileUtils.chmod(0755, 'somecommand')
FileUtils.chmod......(0755, '/usr/bin/ruby', verbose: true)
# Symbolic mode
require 'fileutils'
FileUtils.chmod("u=wr,go=rr", %w(my.rb your.rb his.rb her.rb))
FileUtils.chmod("u=wrx,go=rx", 'somecommand')
FileUtils.chmod("u=wrx,go=rx", '/usr/bin/ruby', verbose: true)
//}
symbolic mode では以下の指定を 操作対......追加
* "-" 以降で指定した権限を削除
* "=" 以降で指定した権限を指定
権限(複数指定可)。
* "w": 書き込み権限
* "r": 読み込み権限
* "x": 実行権限
* "s": 実行時にユーザー、あるいはグループ ID を設定
* "t": sticky ビット...