るりまサーチ

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

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

ライブラリ

モジュール

キーワード

検索結果

FileUtils.#chdir(dir, options = {}) -> 0 (15115.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 (15115.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 (15115.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 (15115.0)

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

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

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

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

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

Open3.#popen3(*cmd) -> [IO, IO, IO, Thread] (43.0)

外部プログラム cmd を実行し、そのプロセスの標準入力、標準出力、標準エラー 出力に接続されたパイプと実行したプロセスを待つためのスレッドを 4 要素の 配列で返します。

...準エラー
出力に接続されたパイプと実行したプロセスを待つためのスレッドを 4 要素の
配列で返します。

require
'open3'
stdin, stdout, stderr, wait_thr = *Open3.popen3("/usr/bin/nroff -man")

@param cmd 実行するコマンドを指定します。

@retu...
...数にブロックを実行し、最後にパイプ
を close します。この場合はブロックの最後の式の結果を返します。

require
'open3'

Open3.popen3("read stdin; echo stdout; echo stderr >&2") {|stdin, stdout, stderr, wait_thr|
stdin.puts "stdin"
stdin.close...
...

require
'open3'

Open3.popen3({"foo" => "1", "bar" => "2"}, "env") {|i, o, e, t|
i.close
print o.read
}
#=> ...
foo=1
bar=2

Kernel.#spawnと同様に、引数リストの最後にオプションをハッシュ形式
で指定する事ができます。

例:

require
...

絞り込み条件を変える

Open3.#popen3(*cmd) {|stdin, stdout, stderr, wait_thr| ... } -> () (43.0)

外部プログラム cmd を実行し、そのプロセスの標準入力、標準出力、標準エラー 出力に接続されたパイプと実行したプロセスを待つためのスレッドを 4 要素の 配列で返します。

...準エラー
出力に接続されたパイプと実行したプロセスを待つためのスレッドを 4 要素の
配列で返します。

require
'open3'
stdin, stdout, stderr, wait_thr = *Open3.popen3("/usr/bin/nroff -man")

@param cmd 実行するコマンドを指定します。

@retu...
...数にブロックを実行し、最後にパイプ
を close します。この場合はブロックの最後の式の結果を返します。

require
'open3'

Open3.popen3("read stdin; echo stdout; echo stderr >&2") {|stdin, stdout, stderr, wait_thr|
stdin.puts "stdin"
stdin.close...
...

require
'open3'

Open3.popen3({"foo" => "1", "bar" => "2"}, "env") {|i, o, e, t|
i.close
print o.read
}
#=> ...
foo=1
bar=2

Kernel.#spawnと同様に、引数リストの最後にオプションをハッシュ形式
で指定する事ができます。

例:

require
...

FileUtils.#cd(dir, options = {}) -> 0 (15.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 (15.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 (15.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 (15.0)

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

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

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

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

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

絞り込み条件を変える