種類
- 文書 (36)
- インスタンスメソッド (30)
- モジュール関数 (24)
- 特異メソッド (12)
- モジュール (12)
ライブラリ
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - shellwords (60)
クラス
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (12)
モジュール
- Shellwords (36)
キーワード
- DOSISH 対応 (12)
- Rubyの起動 (12)
- Shellwords (12)
-
ruby 1
. 9 feature (12) - shellsplit (24)
- shellwords (12)
検索結果
先頭5件
-
Shell
# split(pathname) -> [String] (21107.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Shell
:: CommandProcessor # split(pathname) -> [String] (21107.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Shell
:: Filter # split(pathname) -> [String] (21107.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param pathname パス名を表す文字列を指定します。
@see File.split... -
Shellwords
. split(line) -> [String] (21101.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。
このメソッドは、Shellwords.#shellsplit の別名です。
@param line 分割の対象となる文字列を指定します。
@return 分割結果の各文字列を要素とす... -
Shellwords
. # shellsplit(line) -> [String] (15200.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...ォートが現れた場合に発生します。
例:
require 'shellwords'
p Shellwords.shellwords(%q{ foo bar "foo bar"\ baz 'foo bar' })
# => ["foo", "bar", "foo bar baz", "foo bar"]
p Shellwords.shellwords(%q{ A B C "D E F" "G","H I" })
# => ["A", "B", "C", "D... -
String
# shellsplit -> [String] (12200.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...の単語分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。
string.shellsplit は、Shellwords.shellsplit(string) と等価です。
@return 分割結果の各文字列を要素とする配列を返します。
@raise ArgumentError 引......数の中に対でないシングルクォートまたはダブル
クォートが現れた場合に発生します。
@see Shellwords.#shellsplit... -
Shellwords
. # shellwords(line) -> [String] (12100.0) -
Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。
...ォートが現れた場合に発生します。
例:
require 'shellwords'
p Shellwords.shellwords(%q{ foo bar "foo bar"\ baz 'foo bar' })
# => ["foo", "bar", "foo bar baz", "foo bar"]
p Shellwords.shellwords(%q{ A B C "D E F" "G","H I" })
# => ["A", "B", "C", "D... -
DOSISH 対応 (6012.0)
-
DOSISH 対応 ruby version 1.7 では、DOSISH対応(DOS/Windows のパス名の扱いに対する変 更)が含まれています。(現在の)変更点を以下に示します。
...DOSISH 対応
ruby version 1.7 では、DOSISH対応(DOS/Windows のパス名の扱いに対する変
更)が含まれています。(現在の)変更点を以下に示します。
なお、これらの変更は platform/mswin32 版、platform/mingw32
版の Ruby にのみあてはまります。......04) [i586-mswin32]
"C:\\foo\\bar"
=> ruby 1.7.1 (2001-08-16) [i586-mswin32]
"bar"
: File.split
File.dirname と File.basename が変更されているので、File.split もそれに準じた
結果を返します。
: File.expand_path
ドライブレター対応に関... -
Shellwords (6006.0)
-
UNIX Bourne シェルの単語分割規則に従った文字列分割と文字列エスケープ を行うモジュールです。
...スケープ
を行うモジュールです。
Shellwords モジュールは、空白区切りの単語分割を行う shellsplit、文字列を
エスケープする shellescape、文字列エスケープを文字列リストに対して適用
する shelljoin の3つのモジュール関数を提......供します。
これらのメソッドの別名として、Shellwords.split, Shellwords.escape,
Shellwords.join も使用可能です。
ただし、これらの短縮形式のメソッドはクラスメソッドとしてのみ定義される
ため、関数形式の呼び出しはできません... -
Rubyの起動 (42.0)
-
Rubyの起動 * cmd_option * shebang
...Rubyの起動
* cmd_option
* shebang
Rubyインタプリタの起動は以下の書式のコマンドラインにより行います。
ruby [ option ...] [ -- ] [ programfile ] [ argument ...]
ここで、option は後述のcmd_option
のいずれかを指定します。-- は、オプシ......プトとみなします。
programfile が `#!' で始まるファイルである場合、特殊な解釈
が行われます。詳細は後述のshebang を参照
してください
argument に指定した文字列は組み込み定数 Object::ARGV の初
期値として設定されます。標......て, オートスプリットモードをONにします。
オートスプリットモードでは各ループの先頭で,
//emlist{
$F = $_.split
//}
が実行されます。`-n'か`-p'オプションが同時に指定されない限り,
このオプションは意味を持ちません...