るりまサーチ

最速Rubyリファレンスマニュアル検索!
144件ヒット [1-100件を表示] (0.018秒)
トップページ > クエリ:fileutils[x] > 種類:特異メソッド[x]

別のキーワード

  1. fileutils cd
  2. fileutils chdir
  3. fileutils ln
  4. fileutils rm
  5. fileutils mv

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 > >>

FileUtils.collect_method(opt) -> Array (17013.0)

与えられたオプションを持つメソッド名の配列を返します。

...与えられたオプションを持つメソッド名の配列を返します。

@param opt オプション名をシンボルで指定します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.collect_method(:preserve) # => ["cp", "cp_r", "copy", "install"]
//}...

FileUtils.commands -> Array (17013.0)

何らかのオプションを持つメソッド名の配列を返します。

...何らかのオプションを持つメソッド名の配列を返します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.commands # => ["chmod", "cp", "cp_r", "install", ...]
//}...

FileUtils.options -> Array (17013.0)

オプション名の配列を返します。

...オプション名の配列を返します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.options
# => ["verbose", "mode", "noop", "parents", "force", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}...
...オプション名の配列を返します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.options
# => ["noop", "verbose", "force", "mode", "parents", "owner", "group", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}...

FileUtils.options_of(mid) -> Array (17013.0)

与えられたメソッド名で使用可能なオプション名の配列を返します。

...与えられたメソッド名で使用可能なオプション名の配列を返します。

@param mid メソッド名を指定します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.options_of(:rm) # => ["noop", "verbose", "force"]
//}...

FileUtils.have_option?(mid, opt) -> bool (17001.0)

mid というメソッドが opt というオプションを持つ場合、真を返します。 そうでない場合は、偽を返します。

mid というメソッドが opt というオプションを持つ場合、真を返します。
そうでない場合は、偽を返します。

@param mid メソッド名を指定します。

@param opt オプション名を指定します。

絞り込み条件を変える

RakeFileUtils.nowrite_flag -> bool (3001.0)

この値が真の場合、実際のファイル書き込みをともなう操作は行いません。 そうでない場合、ファイル書き込みを行います。

...ァイル書き込みをともなう操作は行いません。
そうでない場合、ファイル書き込みを行います。

//emlist[][ruby]{
# Rakefile での記載例とする
task default: :sample_file_task

file :sample_file_task do |t|
RakeFileUtils.nowrite_flag # => false
end
//}...

RakeFileUtils.nowrite_flag=(flag) (3001.0)

実際に動作を行うかどうか設定します。

...。真を指定すると動作を実行しません。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :sample_file_task

file :sample_file_task do |t|
RakeFileUtils.nowrite_flag # => false
RakeFileUtils.nowrite_flag = true
RakeFileUtils.nowrite_flag # => true
end
//}...

RakeFileUtils.verbose_flag -> bool (3001.0)

この値が真の場合、詳細を表示します。

...この値が真の場合、詳細を表示します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :sample_file_task

file :sample_file_task do |t|
# --verbose で rake を実行する
RakeFileUtils.verbose_flag # => true
end
//}...

RakeFileUtils.verbose_flag=(flag) (3001.0)

詳細を表示するかどうか設定します。

...ます。


//emlist[][ruby]{
# Rakefile での記載例とする

task default: :sample_file_task

file :sample_file_task do |t|
# --verbose で rake を実行する
p RakeFileUtils.verbose_flag # => true
RakeFileUtils.verbose_flag = false
p RakeFileUtils.verbose_flag # => false
end
//}...
<< 1 2 > >>