399件ヒット
[1-100件を表示]
(0.124秒)
ライブラリ
- ビルトイン (249)
-
io
/ console (36) -
irb
/ context (36) - shell (24)
-
shell
/ builtin-command (6) -
shell
/ command-processor (24) -
shell
/ filter (24)
クラス
-
ARGF
. class (204) - Array (21)
- IO (36)
-
IRB
:: Context (36) - Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Echo (6) -
Shell
:: Filter (24) - String (24)
検索結果
先頭5件
-
Shell
:: Filter # echo(*strings) -> Shell :: Filter (21214.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ilter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(fi......le).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
IRB
:: Context # echo -> bool (21109.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
...
irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo=... -
Shell
# echo(*strings) -> Shell :: Filter (18214.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ilter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(fi......le).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (18214.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ilter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(fi......le).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
IO
# noecho {|io| . . . } -> object (9201.0) -
文字入力時のエコーバックを無効に設定してブロックを評価します。
...す。ブロックを評価した結果を返します。
以下の例では、標準入力からエコーバックなしで文字列を一行読み込みます。
require "io/console"
STDIN.noecho(&:gets)
@raise LocalJumpError ブロックを指定しなかった場合に発生します。... -
IRB
:: Context # echo=(val) (9114.0) -
irb のプロンプトでの評価結果を表示するかどうかを設定します。
...
irb のプロンプトでの評価結果を表示するかどうかを設定します。
.irbrc ファイル中で IRB.conf[:ECHO] を設定する事でも同様の操作が行えま
す。
@param val true を指定した場合、irb のプロンプトでの評価結果を表示しま......す。false を指定した場合は表示しません。
@see IRB::Context#echo... -
IRB
:: Context # echo? -> bool (9109.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
...
irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo=... -
IO
# echo=(flag) (9102.0) -
文字入力時のエコーバックが有効かどうかを設定します。
文字入力時のエコーバックが有効かどうかを設定します。
@param flag true を指定した場合、文字入力時のエコーバックが有効に設定さ
れます。 -
IO
# echo? -> bool (9102.0) -
文字入力時のエコーバックが有効かどうかを返します。
文字入力時のエコーバックが有効かどうかを返します。 -
ARGF
. class # inplace _ mode -> String | nil (6225.0) -
c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。
...c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡
張子を返します。拡張子が設定されていない場合は空文字列を返します。イン
プレースモードでない場合は nil を返します。
Ruby 起動時の -i オプション や......ARGF.class#inplace_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=...