るりまサーチ

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

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io each_line
  5. io readlines

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

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

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

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

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

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

FileUtils.options -> Array (6101.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 (6101.0)

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

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

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

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

FileUtils.#compare_stream(io_a, io_b) -> bool (275.0)

IO オブジェクト io_a と io_b の内容が同じなら真を返します。

...
IO
オブジェクト io_a と io_b の内容が同じなら真を返します。

@param io_a IO オブジェクト。

@param io_b IO オブジェクト。...

FileUtils.#cd(dir, options = {}) -> 0 (101.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cd('/', verbose: true) # chdir and report it
//}...

絞り込み条件を変える

FileUtils.#cd(dir, options = {}) -> nil (101.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cd('/', verbose: true) # chdir and report it
//}...

FileUtils.#cd(dir, options = {}) {|dir| .... } -> nil (101.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cd('/', verbose: true) # chdir and report it
//}...

FileUtils.#cd(dir, options = {}) {|dir| .... } -> object (101.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cd('/', verbose: true) # chdir and report it
//}...

FileUtils.#chdir(dir, options = {}) -> 0 (101.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cd('/', verbose: true) # chdir and report it
//}...

FileUtils.#chdir(dir, options = {}) -> nil (101.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cd('/', verbose: true) # chdir and report it
//}...

絞り込み条件を変える

FileUtils.#chdir(dir, options = {}) {|dir| .... } -> nil (101.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cd('/', verbose: true) # chdir and report it
//}...

FileUtils.#chdir(dir, options = {}) {|dir| .... } -> object (101.0)

プロセスのカレントディレクトリを dir に変更します。

...ック終了後に
元のディレクトリに戻ります。

@param dir ディレクトリを指定します。

@param options :verbose が指定できます。
c:FileUtils#options

//emlist[][ruby]{
require 'fileutils'
FileUtils
.cd('/', verbose: true) # chdir and report it
//}...

FileUtils.#chmod(mode, list, options = {}) -> Array (101.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 では以下の指定を 操作対...

FileUtils.#chmod_R(mode, list, options = {}) -> Array (101.0)

ファイル list のパーミッションを再帰的に mode へ変更します。

...mode)で指定します(FileUtils.#chmod 参照)。

@param list ファイルのリストを指定します。対象のファイルが一つの場合は文字列でも指定可能です。
二つ以上指定する場合は配列で指定します。

@param options :noop と :verbose が...
...指定可能です。
c:FileUtils#options

@return list を配列として返します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.chmod_R(0700, '/tmp/removing')
//}...
<< 1 2 3 ... > >>