416件ヒット
[1-100件を表示]
(0.129秒)
ライブラリ
- ビルトイン (272)
-
io
/ console (33) -
irb
/ context (33) - shell (24)
-
shell
/ builtin-command (6) -
shell
/ command-processor (24) -
shell
/ filter (24)
クラス
-
ARGF
. class (231) - Array (19)
- IO (33)
-
IRB
:: Context (33) - Shell (24)
-
Shell
:: CommandProcessor (24) -
Shell
:: Echo (6) -
Shell
:: Filter (24) - String (22)
キーワード
- cat (18)
- chr (11)
- close (11)
- closed? (11)
- each (6)
-
each
_ char (22) -
each
_ codepoint (22) - echo= (22)
- echo? (22)
- eof (11)
- eof? (11)
- file (11)
- filename (11)
- getbyte (11)
- getc (11)
- gets (33)
- glob (18)
-
inplace
_ mode (11) - noecho (11)
- pack (19)
- path (11)
- read (11)
- readbyte (11)
- readchar (11)
- skip (11)
- tee (18)
- unpack (11)
検索結果
先頭5件
-
Shell
# echo(*strings) -> Shell :: Filter (18114.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ings シェルコマンド 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 # echo(*strings) -> Shell :: Filter (18114.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ings シェルコマンド 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 # echo(*strings) -> Shell :: Filter (18114.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ings シェルコマンド 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")... -
IRB
:: Context # echo -> bool (18109.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
...irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo=... -
IRB
:: Context # echo=(val) (6114.0) -
irb のプロンプトでの評価結果を表示するかどうかを設定します。
...す。
.irbrc ファイル中で IRB.conf[:ECHO] を設定する事でも同様の操作が行えま
す。
@param val true を指定した場合、irb のプロンプトでの評価結果を表示しま
す。false を指定した場合は表示しません。
@see IRB::Context#echo... -
IRB
:: Context # echo? -> bool (6109.0) -
irb のプロンプトでの評価結果を表示するかどうかを返します。
...irb のプロンプトでの評価結果を表示するかどうかを返します。
デフォルト値は false です。
@see IRB::Context#echo=... -
IO
# echo=(flag) (6102.0) -
文字入力時のエコーバックが有効かどうかを設定します。
文字入力時のエコーバックが有効かどうかを設定します。
@param flag true を指定した場合、文字入力時のエコーバックが有効に設定さ
れます。 -
IO
# echo? -> bool (6102.0) -
文字入力時のエコーバックが有効かどうかを返します。
文字入力時のエコーバックが有効かどうかを返します。 -
IO
# noecho {|io| . . . } -> object (6101.0) -
文字入力時のエコーバックを無効に設定してブロックを評価します。
...す。ブロックを評価した結果を返します。
以下の例では、標準入力からエコーバックなしで文字列を一行読み込みます。
require "io/console"
STDIN.noecho(&:gets)
@raise LocalJumpError ブロックを指定しなかった場合に発生します。... -
Shell
:: Echo # each(rs = nil) {|str| . . . } (3001.0) -
@todo
@todo -
ARGF
. class # gets(limit) -> String | nil (25.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "......line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@s... -
ARGF
. class # gets(limit , chomp: false) -> String | nil (25.0) -
ARGFの現在位置から一行ずつ文字列として読み込みます。EOF に到達した時に は nil を返します。
...# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets # => "line1\n"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets(2) # => "li"
例:
# $ echo "......line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("e") # => "line"
例:
# $ echo "line1\nline2\nline3\n\nline4\n" > test.txt
# $ ruby test.rb test.txt
# test.rb
ARGF.gets("") # => "line1\nline2\nline3\n\n"
@s...