種類
- インスタンスメソッド (78)
- 文書 (11)
ライブラリ
- shell (24)
-
shell
/ command-processor (24) -
shell
/ filter (30)
クラス
- Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30)
キーワード
- cat (18)
- echo (18)
- glob (18)
-
ruby 1
. 6 feature (11) - tee (18)
検索結果
先頭5件
-
ruby 1
. 6 feature (23288.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...00019>))
: 2002-09-11: Queue#((<Queue/pop>))
Queue#pop に競合状態の問題がありました ((<ruby-dev:17223>))
: 2002-09-11: SizedQueue.new
引数に 0 以下を受けつけるバグが修正されました。
: 2002-09-05: ((<リテラル/式展開>))
stable snapshot で、一......clude Enumerable
def each(&block)
block.call(1,2)
block.call(2,3)
block.call(3,4)
end
end
x = X.new
p x.to_a #=> [[1], [2], [3]]
# => ruby 1.6.3 (2001-03-19) [i586-linux]
[[1], [2], [3]]
# => ruby 1.6.4 (2001-06-04) [i586-linux]......ify frozen string (TypeError)
%w(foo bar bar baz).uniq[0].upcase!
=> -:1:in `upcase!': can't modify frozen string (TypeError)
: ((<shell>))
shell 0.6 が標準ライブラリとして新規に追加されました。
(ドキュメントが doc ディレクトリにあります)
:... -
Shell
:: Filter # to _ a -> [String] (21131.0) -
実行結果を文字列の配列で返します。
...実行結果を文字列の配列で返します。
require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a... -
Shell
# cat(*files) -> Shell :: Filter (17131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...コマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "al... -
Shell
# echo(*strings) -> Shell :: Filter (17131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "... -
Shell
# glob(pattern) -> Shell :: Filter (17131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "... -
Shell
# tee(file) -> Shell :: Filter (17131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (3131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...コマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "al... -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (3131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "... -
Shell
:: CommandProcessor # glob(pattern) -> Shell :: Filter (3131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "... -
Shell
:: CommandProcessor # tee(file) -> Shell :: Filter (3131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "... -
Shell
:: Filter # cat(*files) -> Shell :: Filter (3131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...コマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "al... -
Shell
:: Filter # echo(*strings) -> Shell :: Filter (3131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "... -
Shell
:: Filter # glob(pattern) -> Shell :: Filter (3131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "... -
Shell
:: Filter # tee(file) -> Shell :: Filter (3131.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "...