るりまサーチ

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

別のキーワード

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

キーワード

検索結果

<< < ... 6 7 8 >>

Shell::Filter#transact { ... } -> object (8.0)

ブロック中で shell を self として実行します。

...ブロック中で shell を self として実行します。

例:

require 'shell'
Shell
.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
}...
<< < ... 6 7 8 >>