るりまサーチ

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

別のキーワード

  1. array fill
  2. array sample
  3. array []
  4. array count
  5. array slice

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 > >>

Shellwords.#shelljoin(array) -> String (209.0)

配列の各要素である文字列に対して、Bourne シェルのコマンドライン中で安全に 使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド ライン文字列を生成します。

...成します。

個々の配列要素に対するエスケープには、Shellwords.#shellescape と
同じ規則が適用されます。

@param array エスケープ対象の文字列を要素とする配列を指定します。
@return エスケープ結果を連結した文字列を返します...

JSON.#generate(object, state = nil) -> String (139.0)

与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。

...:space
a string that is put after, a : or , delimiter (default: '')
: :space_before
a string that is put before a : pair delimiter (default: '')
: :object_nl
a string that is put at the end of a JSON object (default: '')
: :array_nl
a string that is put at the end of a JSON array (default:...

JSON.#unparse(object, state = nil) -> String (139.0)

与えられたオブジェクトを一行の JSON 形式の文字列に変換して返します。

...:space
a string that is put after, a : or , delimiter (default: '')
: :space_before
a string that is put before a : pair delimiter (default: '')
: :object_nl
a string that is put at the end of a JSON object (default: '')
: :array_nl
a string that is put at the end of a JSON array (default:...

Open3.#pipeline(*cmds) -> [Process::Status] (25.0)

指定したコマンドのリストをパイプで繋いで順番に実行します。

...を指定します。それぞれのコマンドは
以下のように String Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String
を指定します。
options には Hash で指定します。...
...env には環境変数を Hash で指定します。
cmdname にはコマンド名を表す String を指定します。
1、2、3 は shell 経由で実行されます。

(1) commandline
(2) [commandline, options]
(3) [env, commandline, options]
(4) [env, cmdname,...

Open3.#pipeline_r(*cmds) -> [IO, [Thread]] (25.0)

指定したコマンドのリストをパイプで繋いで順番に実行します。最後の コマンドの標準出力を受けとる事ができます。

...を指定します。それぞれのコマンドは
以下のように String Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String
を指定します。
options には Hash で指定します。...
...env には環境変数を Hash で指定します。
cmdname にはコマンド名を表す String を指定します。
1、2、3 は shell 経由で実行されます。

(1) commandline
(2) [commandline, options]
(3) [env, commandline, options]
(4) [env, cmdname,...

絞り込み条件を変える

Open3.#pipeline_r(*cmds) {|last_stdout, wait_thrs| ... } -> () (25.0)

指定したコマンドのリストをパイプで繋いで順番に実行します。最後の コマンドの標準出力を受けとる事ができます。

...を指定します。それぞれのコマンドは
以下のように String Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String
を指定します。
options には Hash で指定します。...
...env には環境変数を Hash で指定します。
cmdname にはコマンド名を表す String を指定します。
1、2、3 は shell 経由で実行されます。

(1) commandline
(2) [commandline, options]
(3) [env, commandline, options]
(4) [env, cmdname,...

Open3.#pipeline_rw(*cmds) -> [IO, IO, [Thread]] (25.0)

指定したコマンドのリストをパイプで繋いで順番に実行します。最初の コマンドの標準入力に書き込む事も最後のコマンドの標準出力を受けとる事も できます。

...を指定します。それぞれのコマンドは
以下のように String Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String
を指定します。
options には Hash で指定します。...
...env には環境変数を Hash で指定します。
cmdname にはコマンド名を表す String を指定します。
1、2、3 は shell 経由で実行されます。

(1) commandline
(2) [commandline, options]
(3) [env, commandline, options]
(4) [env, cmdname,...

Open3.#pipeline_rw(*cmds) {|first_stdin, last_stdout, wait_thrs| ... } -> () (25.0)

指定したコマンドのリストをパイプで繋いで順番に実行します。最初の コマンドの標準入力に書き込む事も最後のコマンドの標準出力を受けとる事も できます。

...を指定します。それぞれのコマンドは
以下のように String Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String
を指定します。
options には Hash で指定します。...
...env には環境変数を Hash で指定します。
cmdname にはコマンド名を表す String を指定します。
1、2、3 は shell 経由で実行されます。

(1) commandline
(2) [commandline, options]
(3) [env, commandline, options]
(4) [env, cmdname,...

Open3.#pipeline_start(*cmds) -> [Thread] (25.0)

指定したコマンドのリストをパイプで繋いで順番に実行します。

...を指定します。それぞれのコマンドは
以下のように String Array で指定します。
commandline にはコマンド全体(例. "nroff -man")を表す
String
を指定します。
options には Hash で指定します。...
...env には環境変数を Hash で指定します。
cmdname にはコマンド名を表す String を指定します。
1、2、3 は shell 経由で実行されます。

(1) commandline
(2) [commandline, options]
(3) [env, commandline, options]
(4) [env, cmdname,...
<< 1 2 > >>