るりまサーチ

最速Rubyリファレンスマニュアル検索!
18件ヒット [1-18件を表示] (0.080秒)
トップページ > クエリ:l[x] > クエリ:shell[x] > クエリ:to_s[x]

別のキーワード

  1. shell/builtin-command new
  2. shell/builtin-command each
  3. etc sc_shell
  4. shell cd
  5. shell notify

検索結果

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

@todo

...@todo

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

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

Shell::Filter#to_s -> String (24131.0)

実行結果を文字列で返します。

...実行結果を文字列で返します。

require 'shell'
Shell
.def_system_command("wc")
sh = Shell.new

sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}...

Shell::Filter#|(filter) -> object (6154.0)

パイプ結合を filter に対して行います。

...合を filter に対して行います。

@param filter Shell::Filter オブジェクトを指定します。

@return filter を返します。

使用例
require 'shell'
Shell
.def_system_command("tail")
Shell
.def_system_command("head")
Shell
.def_system_command("wc")
sh = Shell.new
sh....
...transact {
i = 1
while i <= (cat("/etc/passwd") | wc("-l")).to_s.chomp.to_i
puts (cat("/etc/passwd") | head("-n #{i}") | tail("-n 1")).to_s
i += 1
end
}...