394件ヒット
[1-100件を表示]
(0.150秒)
ライブラリ
- ビルトイン (261)
-
io
/ console (22) -
irb
/ context (33) - shell (24)
-
shell
/ builtin-command (6) -
shell
/ command-processor (24) -
shell
/ filter (24)
クラス
-
ARGF
. class (231) - Array (19)
- IO (22)
-
IRB
:: Context (33) - Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Echo (6) -
Shell
:: Filter (24) - String (11)
検索結果
先頭5件
-
Shell
# echo(*strings) -> Shell :: Filter (21226.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...lter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(fil......e).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (21226.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...lter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(fil......e).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
:: Filter # echo(*strings) -> Shell :: Filter (21226.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...lter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(fil......e).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
IRB
:: Context # echo -> bool (18209.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
...irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo=... -
ARGF
. class # inplace _ mode -> String | nil (9113.0) -
c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。
...nplace で書き換えるファイルのバックアップに付加される拡
張子を返します。拡張子が設定されていない場合は空文字列を返します。イン
プレースモードでない場合は nil を返します。
Ruby 起動時の -i オプション や ARGF.clas......place_mode= で設定します。
例:
# $ echo "test" > test.txt
# $ ruby -i.bak test.rb test.txt
# $ cat test.txt # => "TEST"
# $ cat test.txt.bak # => "test"
# test.rb
ARGF.inplace_mode # => ".bak"
ARGF.each_line {|e|print e.upcase} # => "TEST"
例:
# $ echo......"test" > test.txt
# $ ruby test.rb test.txt
# $ cat test.txt # => "test"
# test.rb
ARGF.inplace_mode # => nil
ARGF.each_line {|e|print e.upcase} # => "TEST"
@see d:spec/rubycmd#cmd_option, ARGF.class#inplace_mode=... -
IRB
:: Context # echo=(val) (6214.0) -
irb のプロンプトでの評価結果を表示するかどうかを設定します。
...す。
.irbrc ファイル中で IRB.conf[:ECHO] を設定する事でも同様の操作が行えま
す。
@param val true を指定した場合、irb のプロンプトでの評価結果を表示しま
す。false を指定した場合は表示しません。
@see IRB::Context#echo... -
IRB
:: Context # echo? -> bool (6209.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
...irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo=... -
IO
# echo=(flag) (6202.0) -
文字入力時のエコーバックが有効かどうかを設定します。
...文字入力時のエコーバックが有効かどうかを設定します。
@param flag true を指定した場合、文字入力時のエコーバックが有効に設定さ
れます。... -
IO
# echo? -> bool (6202.0) -
文字入力時のエコーバックが有効かどうかを返します。
文字入力時のエコーバックが有効かどうかを返します。 -
ARGF
. class # filename -> String (6119.0) -
現在開いている処理対象のファイル名を返します。
...は - を返します。
組み込み変数 $FILENAME と同じです。
$ echo "foo" > foo
$ echo "bar" > bar
$ echo "glark" > glark
$ ruby argf.rb foo bar glark
ARGF.filename # => "foo"
ARGF.read(5) # => "foo\nb"
ARGF.filename # => "bar"
ARGF.skip
ARGF.filename # => "glark"... -
Shell
# glob(pattern) -> Shell :: Filter (6119.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...Filter オブジェクトを返します.
@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.n......ew
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}
@see Dir.[]...