るりまサーチ

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

別のキーワード

  1. shell/builtin-command new
  2. shell/builtin-command each
  3. rubygems/command command
  4. irb/extend-command def_extend_command
  5. irb/extend-command install_extend_commands

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Shell::SystemCommand#command -> String (24102.0)

@todo

@todo

コマンド名を返します。

FileUtils#sh(*cmd) {|result, status| ... } (18126.0)

与えられたコマンドを実行します。

...

@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。


例:
sh
%{ls -ltr}

sh
'ls', 'file with spaces'

# check exit status after command runs
sh
%{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exit...

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

@todo

@todo

Shell::CommandProcessor#rehash -> {} (12101.0)

登録されているシステムコマンドの情報をクリアします。 通常、使うことはありません。

登録されているシステムコマンドの情報をクリアします。
通常、使うことはありません。

Shell::SystemCommand#flush -> () (12101.0)

@todo

@todo

絞り込み条件を変える

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

@todo

@todo

Shell#find_system_command(command) (9203.0)

@todo

@todo

Shell::Filter#find_system_command(command) (9203.0)

@todo

@todo

Gem::Command#show_help -> () (9101.0)

コマンドの使用方法を表示します。

コマンドの使用方法を表示します。

Gem::Command#show_lookup_failure(gem_name, version, errors = nil) -> () (9101.0)

Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。

Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。

@param gem_name Gem の名前を指定します。

@param version Gem のバージョンを指定します。

@param errors Gem が見つからなかった理由を表すオブジェクトを格納した配列を指定します。

絞り込み条件を変える

Shell::CommandProcessor#finish_all_jobs (9101.0)

@todo

@todo

Shell::SystemCommand#name -> String (9002.0)

@todo

@todo

コマンド名を返します。

Shell::CommandProcessor#system(command, *opts) -> Shell::SystemCommand (6360.0)

command を実行する.

...
command
を実行する.

@param command 実行するコマンドのパスを文字列で指定します。

@param opts command のオプションを文字列で指定します。複数可。

使用例:

require 'shell'
Sh
ell.verbose = false
sh
= Shell.new

print sh.system("ls", "-l")
S...
...hell.def_system_command("head")
sh
.system("ls", "-l") | sh.head("-n 3") > STDOUT...

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

@todo

...@todo

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

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

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

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

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

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@para...
...定します。

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

絞り込み条件を変える

<< 1 2 3 ... > >>