るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
320件ヒット [1-100件を表示] (0.038秒)
トップページ > バージョン:2.4.0[x] > クエリ:@[x] > ライブラリ:shell[x]

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Shell::CommandProcessor.alias_command(alias, command, *opts) -> self (124.0)

@todo

@todo

@param alias エイリアスの名前を指定します。

@param command コマンド名を指定します。

@param opts コマンドに与えるオプションを指定します。

@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。

Shell::CommandProcessor.alias_command(alias, command, *opts) { ... } -> self (124.0)

@todo

@todo

@param alias エイリアスの名前を指定します。

@param command コマンド名を指定します。

@param opts コマンドに与えるオプションを指定します。

@raise SyntaxError コマンドのエイリアス作成に失敗した時に発生します。

Shell::SystemCommand.new(sh, command, *opts) (106.0)

@todo

@todo

@param sh

@param command

@param opts

Shell#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (91.0)

@todo

...@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。...

Shell#kill(signal, job) -> Integer (91.0)

@todo

@todo

ジョブにシグナルを送ります。

@param signal

@param job

絞り込み条件を変える

Shell::CommandProcessor#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (88.0)

@todo

...@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。...

Shell::CommandProcessor.def_builtin_commands(delegation_class, commands_specs) -> () (88.0)

@todo

@todo

@param delegation_class 処理を委譲したいクラスかモジュールを指定します。

@param commands_specs コマンドの仕様を文字列の配列で指定します。
[[コマンド名, [引数1, 引数2, ...]], ...]

Shell::CommandProcessor.def_system_command(command, path = command) -> () (88.0)

@todo

@todo

与えられたコマンドをメソッドとして定義します。

@param command 定義したいコマンドを指定します。

@param path command のパスを指定します。省略すると環境変数 PATH から command を探します。

Shell::Filter#append(to, filter) -> Shell::AppendFile | Shell::AppendIO (88.0)

@todo

...@todo

@param to 文字列か IO を指定します。

@param filter Shell::Filter のインスタンスを指定します。...

Shell::SystemCommand#notify(*opts) -> String (88.0)

@todo

...@todo

@param opts

@see Shell#notify...

絞り込み条件を変える

Shell::SystemCommand#notify(*opts) {|message| ... } -> String (88.0)

@todo

...@todo

@param opts

@see Shell#notify...

Shell#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (79.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell
.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e"...

Shell#chown(owner, group, *filename) -> Integer (79.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。

@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることができます。

@param filename ファイル名を表す文字列を指定します。

@see File.chown

Shell#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (79.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell
.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e"...

Shell#utime(atime, mtime, *filename) -> Integer (79.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。

@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。

@see File.utime

絞り込み条件を変える

Shell::CommandProcessor#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (76.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell
.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e"...

Shell::CommandProcessor#chown(owner, group, *filename) -> Integer (76.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。

@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることができます。

@param filename ファイル名を表す文字列を指定します。

@see File.chown

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (76.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell
.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e"...

Shell::CommandProcessor#utime(atime, mtime, *filename) -> Integer (76.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。

@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。

@see File.utime

Shell::Filter#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (76.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell
.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e"...

絞り込み条件を変える

Shell::Filter#chown(owner, group, *filename) -> Integer (76.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。

@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることができます。

@param filename ファイル名を表す文字列を指定します。

@see File.chown

Shell::Filter#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (76.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...ァイルへのパスを指定します。

@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell
.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e"...

Shell::Filter#utime(atime, mtime, *filename) -> Integer (76.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。

@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。

@see File.utime

Shell.debug_output_lock -> Mutex (73.0)

@todo

@todo

@see Thread::Mutex#lock

Shell.debug_output_locked? -> bool (73.0)

@todo

@todo

@see Thread::Mutex#locked?

絞り込み条件を変える

Shell.debug_output_synchronize (73.0)

@todo

@todo

@see Thread::Mutex#synchronize

Shell.debug_output_try_lock -> bool (73.0)

@todo

@todo

@see Thread::Mutex#try_lock

Shell.debug_output_unlock -> Mutex | nil (73.0)

@todo

@todo

@see Thread::Mutex#unlock

Shell::CommandProcessor.add_delegate_command_to_shell(id) (70.0)

@todo

...@todo

Shell
自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。

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

Shell::CommandProcessor.method_added(id) (70.0)

@todo このクラスに定義されたメソッドを Shell にも定義するためのフックです。

...@todo
このクラスに定義されたメソッドを Shell にも定義するためのフックです。

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

絞り込み条件を変える

Shell::SystemCommand#each(rs = nil) {|line| ... } (70.0)

@todo

@todo

@param rs

Shell#basename(filename, suffix = "") -> String (61.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。

@see File.basename

Shell#chmod(mode, *filename) -> Integer (61.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param mode chmod(2) と同様に整数で指定します。

@see File.chmod

Shell#link(old, new) -> 0 (61.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param old ファイル名を表す文字列を指定します。

@param new ファイル名を表す文字列を指定します。

@see File.link

Shell#open(path, mode) -> File | Dir (61.0)

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

@param path 開きたいパスを指定します。

@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。

@see File.open, Dir.open

絞り込み条件を変える

Shell#rename(from, to) -> 0 (61.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param from ファイルの名前を文字列で与えます。

@param to 新しいファイル名を文字列で与えます。

@see File.rename

Shell#symlink(old, new) -> 0 (61.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param old ファイル名を表す文字列を指定します。

@param new シンボリックリンクを表す文字列を指定します。

@see File.symlink

Shell#truncate(path, length) -> 0 (61.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate

Shell.alias_command(alias, command, *opts) {...} -> self (61.0)

コマンドの別名(エイリアス)を作成します。 コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.

...コマンドの別名(エイリアス)を作成します。
コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.

@param alias エイリアスの名前を文字列で指定します.

@param command コマンド名を文字列で指定します.

@param...
...を指定します.

使用例: ls -la | sort -k 5 のような例。

require 'shell'
Shell
.def_system_command("ls")
Shell
.alias_command("lsla", "ls", "-a", "-l")
Shell
.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}...

Shell::CommandProcessor#basename(filename, suffix = "") -> String (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。

@see File.basename

絞り込み条件を変える

Shell::CommandProcessor#chmod(mode, *filename) -> Integer (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param mode chmod(2) と同様に整数で指定します。

@see File.chmod

Shell::CommandProcessor#link(old, new) -> 0 (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param old ファイル名を表す文字列を指定します。

@param new ファイル名を表す文字列を指定します。

@see File.link

Shell::CommandProcessor#open(path, mode) -> File | Dir (58.0)

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

@param path 開きたいパスを指定します。

@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。

@see File.open, Dir.open

Shell::CommandProcessor#rename(from, to) -> 0 (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param from ファイルの名前を文字列で与えます。

@param to 新しいファイル名を文字列で与えます。

@see File.rename

Shell::CommandProcessor#symlink(old, new) -> 0 (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param old ファイル名を表す文字列を指定します。

@param new シンボリックリンクを表す文字列を指定します。

@see File.symlink

絞り込み条件を変える

Shell::CommandProcessor#truncate(path, length) -> 0 (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate

Shell::Filter#basename(filename, suffix = "") -> String (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。

@see File.basename

Shell::Filter#chmod(mode, *filename) -> Integer (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param mode chmod(2) と同様に整数で指定します。

@see File.chmod

Shell::Filter#link(old, new) -> 0 (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param old ファイル名を表す文字列を指定します。

@param new ファイル名を表す文字列を指定します。

@see File.link

Shell::Filter#open(path, mode) -> File | Dir (58.0)

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。

@param path 開きたいパスを指定します。

@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。

@see File.open, Dir.open

絞り込み条件を変える

Shell::Filter#rename(from, to) -> 0 (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param from ファイルの名前を文字列で与えます。

@param to 新しいファイル名を文字列で与えます。

@see File.rename

Shell::Filter#symlink(old, new) -> 0 (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param old ファイル名を表す文字列を指定します。

@param new シンボリックリンクを表す文字列を指定します。

@see File.symlink

Shell::Filter#truncate(path, length) -> 0 (58.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate

Shell::ProcessController#kill_job(signal, command) -> Integer (58.0)

指定されたコマンドにシグナルを送ります。

指定されたコマンドにシグナルを送ります。

@param signal シグナルを整数かその名前の文字列で指定します。
負の値を持つシグナル(あるいはシグナル名の前に-)を指定すると、
プロセスではなくプロセスグループにシグナルを送ります。

@param command コマンドを指定します。

@see Process.#kill

Shellwords.#shellsplit(line) -> [String] (58.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...

絞り込み条件を変える

Shellwords.#shellwords(line) -> [String] (58.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...

Shellwords.split(line) -> [String] (58.0)

Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。

...語分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。

このメソッドは、Shellwords.#shellsplit の別名です。

@param line 分割の対象となる文字列を指定します。
@return 分割結果の各文字列を要素と...

String#shellsplit -> [String] (58.0)

Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。

...ルの単語分割規則に従った空白区切りの単語分割を行い、
単語 (文字列) の配列を返します。

string.shellsplit は、Shellwords.shellsplit(string) と等価です。

@return 分割結果の各文字列を要素とする配列を返します。
@raise ArgumentError...
...引数の中に対でないシングルクォートまたはダブル
クォートが現れた場合に発生します。
@see Shellwords.#shellsplit...

Shell#check_point (55.0)

@todo

@todo

Shell#command_processor -> Shell::CommandProcessor (55.0)

@todo

@todo

絞り込み条件を変える

Shell#concat(*jobs) -> Shell::Concat (55.0)

@todo

@todo

Shell#debug -> bool | Integer (55.0)

@todo

@todo

Shell#debug=(flag) (55.0)

@todo

@todo

Shell#debug? -> bool | Integer (55.0)

@todo

@todo

Shell#dir_stack -> [String] (55.0)

@todo

@todo

絞り込み条件を変える

Shell#dirs -> [String] (55.0)

@todo

@todo

Shell#find_system_command(command) (55.0)

@todo

@todo

Shell#finish_all_jobs (55.0)

@todo

@todo

Shell#identical? (55.0)

@todo

@todo

Shell#notify(*opts) { ... } -> () (55.0)

@todo

@todo

絞り込み条件を変える

Shell#process_controller -> Shell::ProcessController (55.0)

@todo

@todo

Shell#record_separator -> String (55.0)

@todo

@todo

Shell#record_separator=(rs) (55.0)

@todo

@todo

Shell#umask -> object (55.0)

@todo

@todo

umaskを返します。

Shell#umask=(umask) (55.0)

@todo

@todo

絞り込み条件を変える

Shell#verbose -> bool (55.0)

@todo

@todo

Shell#verbose=(flag) (55.0)

@todo

@todo

Shell#verbose? -> bool (55.0)

@todo

@todo

Shell#world_readable? (55.0)

@todo

@todo

Shell#world_writable? (55.0)

@todo

@todo

絞り込み条件を変える

Shell.cascade -> bool (55.0)

@todo

@todo

Shell.cascade=(flag) (55.0)

@todo

@todo

Shell.debug -> bool | Integer (55.0)

@todo

@todo

デバッグ用フラグを参照します。

Shell.debug? -> bool | Integer (55.0)

@todo

@todo

デバッグ用フラグを参照します。

Shell.notify(*opts) {|message| ... } -> String (55.0)

@todo

@todo

絞り込み条件を変える

Shell.verbose -> bool (55.0)

@todo

@todo

Shell.verbose? -> bool (55.0)

@todo

@todo

Shell::AppendFile#input=(filter) (52.0)

@todo

@todo

Shell::AppendFile.new(sh, filename) (52.0)

@todo

@todo

Shell::AppendIO#input=(filter) (52.0)

@todo

@todo

絞り込み条件を変える

Shell::AppendIO.new(sh, filename) (52.0)

@todo

@todo

Shell::BuiltInCommand#active? -> true (52.0)

@todo

@todo

Shell::BuiltInCommand#wait? -> false (52.0)

@todo

@todo

Shell::Cat#each(rs = nil) {|line| ... } (52.0)

@todo

@todo

Shell::Cat.new(sh, *filenames) (52.0)

@todo

@todo

絞り込み条件を変える

Shell::CommandProcessor#check_point (52.0)

@todo

@todo

Shell::CommandProcessor#concat(*jobs) -> Shell::Concat (52.0)

@todo

@todo

Shell::CommandProcessor#find_system_command(command) (52.0)

@todo

@todo

Shell::CommandProcessor#finish_all_jobs (52.0)

@todo

@todo

Shell::CommandProcessor#identical? (52.0)

@todo

@todo

絞り込み条件を変える

<< 1 2 3 ... > >>