るりまサーチ

最速Rubyリファレンスマニュアル検索!
30件ヒット [1-30件を表示] (0.030秒)
トップページ > 種類:特異メソッド[x] > クエリ:Shell[x] > クラス:Shell[x] > ライブラリ:shell[x] > クエリ:verbose[x]

別のキーワード

  1. shell/builtin-command new
  2. etc sc_shell
  3. shell/builtin-command each
  4. shell verbose
  5. shell verbose?

キーワード

検索結果

Shell.verbose -> bool (39106.0)

@todo

@todo

Shell.verbose? -> bool (27106.0)

@todo

@todo

Shell.verbose=(flag) (27105.0)

true ならば冗長な出力の設定を行います。

true ならば冗長な出力の設定を行います。

@param flag true ならば冗長な出力の設定を行います。

Shell.cd(path = nil, verbose = self.verbose) -> self (21240.0)

pathをカレントディレクトリとするShellオブジェクトを生成します.

...クトリとするShellオブジェクトを生成します.

@param path カレントディレクトリとするディレクトリを文字列で指定します。

@param verbose true を指定すると冗長な出力を行います。


使用例
require 'shell'
sh = Shell.new
sh.cd("/tmp")...

Shell.install_system_commands(pre = "sys_") -> () (21050.0)

system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.

...イルをShellに定義する. メソッ
ド名は元のファイル名の頭にpreをつけたものとなる.

@param pre Shellに定義するメソッド名の先頭に付加される文字列を指定します。

使用例: ls -l | head -n 5 のような例。

require 'shell'
Shell
.install...
..._system_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}
}...

絞り込み条件を変える