別のキーワード
クラス
-
ARGF
. class (121) - Array (85)
- Binding (6)
- Class (11)
- Complex (33)
- Dir (8)
-
Encoding
:: Converter (88) - Enumerator (11)
- Exception (146)
- Fiber (5)
- File (371)
- Float (11)
- IO (1020)
- Integer (11)
- Module (24)
- NilClass (11)
- Numeric (11)
- Object (22)
- Proc (11)
- Rational (85)
- Regexp (44)
-
RubyVM
:: InstructionSequence (132) - SignalException (55)
- StopIteration (11)
- String (163)
- Symbol (32)
- Thread (98)
-
Thread
:: Backtrace :: Location (33) - Time (22)
- TracePoint (17)
キーワード
-
$ ! (11) -
$ > (11) -
$ stdin (11) -
$ stdout (11) - == (11)
- Complex (12)
- Exception (11)
- Float (6)
- Integer (6)
-
MAJOR
_ VERSION (11) -
MINOR
_ VERSION (11) -
PRIO
_ PGRP (11) -
PRIO
_ PROCESS (11) -
PRIO
_ USER (11) -
RUBY
_ DESCRIPTION (11) - Rational (6)
- SignalException (11)
- StopIteration (11)
- Thread (11)
- UndefinedConversionError (11)
-
abort
_ on _ exception (22) -
abort
_ on _ exception= (22) -
absolute
_ path (22) - advise (11)
- backtrace (11)
-
backtrace
_ locations (11) - binread (11)
- binwrite (11)
- blockdev? (11)
-
caller
_ locations (22) - capitalize (16)
- capitalize! (8)
- cause (11)
- ceil (11)
- chardev? (11)
- chown (11)
- chr (11)
- chunk (11)
- codepoints (14)
- compile (22)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) -
const
_ source _ location (5) -
copy
_ stream (22) - delete (11)
- directory? (11)
- disasm (11)
- disassemble (11)
- display (11)
- downcase (16)
- downcase! (8)
- dump (22)
- dup (11)
- each (66)
-
each
_ byte (22) -
each
_ char (22) -
each
_ codepoint (22) -
each
_ line (66) - empty? (24)
- encode (33)
- encode! (22)
- exception (33)
- exec (44)
- exist? (11)
-
external
_ encoding (11) - file? (11)
-
first
_ lineno (11) - flock (11)
- floor (11)
- fnmatch (11)
- fnmatch? (11)
-
for
_ fd (11) - foreach (22)
- getc (11)
- getpriority (11)
- gets (48)
- grpowned? (22)
- identical? (11)
- inspect (44)
-
instruction
_ sequence (6) -
internal
_ encoding (11) -
last
_ error (11) - lchown (11)
- load (11)
- lstat (11)
-
marshal
_ dump (11) -
module
_ function (19) - new (110)
-
next
_ values (11) - of (11)
- open (66)
- owned? (11)
- pack (19)
- partition (33)
- path (24)
- permutation (22)
- pid (11)
- pipe (88)
- pipe? (22)
- popen (154)
- pos (22)
- pos= (22)
- positive? (8)
- pread (7)
-
primitive
_ convert (44) - print (22)
- printf (33)
- priority (11)
- priority= (11)
- putc (22)
- puts (22)
- pwrite (7)
- quo (11)
- raise (5)
-
raised
_ exception (11) - rationalize (66)
- read (44)
-
read
_ nonblock (20) - readable? (11)
-
readable
_ real? (11) - readchar (11)
- readline (24)
- readlines (66)
- readlink (11)
- readpartial (22)
- reopen (33)
-
repeated
_ combination (22) -
repeated
_ permutation (22) -
report
_ on _ exception (16) -
report
_ on _ exception= (16) - restore (11)
- result (11)
- round (11)
- rpartition (11)
-
search
_ convpath (11) - select (22)
-
set
_ backtrace (11) -
set
_ encoding (44) -
set
_ encoding _ by _ bom (5) - setgid? (11)
- setpriority (11)
- setuid? (11)
- signm (11)
- signo (11)
- size (11)
- size? (11)
-
slice
_ before (22) - socket? (22)
-
source
_ location (17) - spawn (44)
- sticky? (11)
- subsec (11)
- superclass (11)
- swapcase (16)
- swapcase! (8)
- symlink? (11)
- sysopen (11)
- sysread (11)
- system (44)
- tell (22)
- test (22)
-
to
_ path (2) -
to
_ r (22) -
to
_ s (11) -
to
_ tty? (7) - truncate (22)
- union (11)
- unlink (11)
- unpack (11)
- upcase (16)
- upcase! (8)
-
verify
_ compaction _ references (5) -
world
_ readable? (11) -
world
_ writable? (11) - write (22)
-
write
_ nonblock (11) - zero? (19)
検索結果
先頭5件
- IO
- IO
. popen([env = {} , [cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO - IO
. popen([env = {} , cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO - IO
. popen(env = {} , [[cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO - IO
. popen(env = {} , [cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO
-
IO (38404.0)
-
基本的な入出力機能のためのクラスです。
...基本的な入出力機能のためのクラスです。
File::Constants は、File から IO へ移動しました。
===[a:m17n] 多言語化と IO のエンコーディング
IO オブジェクトはエンコーディングを持ちます。
エンコーディングの影響を受けるメ......と受けないメソッドがあります。
影響を受けるメソッドでは、IO のエンコーディングに従い読み込まれた文字列のエンコーディングが決定されます。
また IO のエンコーディングを適切に設定することにより、読み込み時......ないメソッド
IO の読み込みメソッドは2種類存在します。
テキスト読み込みメソッドとバイナリ読み込みメソッドです。
テキスト読み込みメソッドは IO のエンコーディングの影響をうけます。
詳しくは「io_encoding」を参... -
IO
. popen([env = {} , [cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO (27425.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......=> "foo\n"
opt でプロセス起動のためのオプションや、パイプ IO オブジェクトの属性(エンコーディングや
読み書き能力)を指定することができます。
プロセス起動のためのオプションは Kernel.#spawn と、
パイプオブジェクトの... -
IO
. popen([env = {} , cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO (27425.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......=> "foo\n"
opt でプロセス起動のためのオプションや、パイプ IO オブジェクトの属性(エンコーディングや
読み書き能力)を指定することができます。
プロセス起動のためのオプションは Kernel.#spawn と、
パイプオブジェクトの... -
IO
. popen(env = {} , [[cmdname , arg0] , *args , execopt={}] , mode = "r" , opt={}) -> IO (27425.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......=> "foo\n"
opt でプロセス起動のためのオプションや、パイプ IO オブジェクトの属性(エンコーディングや
読み書き能力)を指定することができます。
プロセス起動のためのオプションは Kernel.#spawn と、
パイプオブジェクトの... -
IO
. popen(env = {} , [cmdname , *args , execopt={}] , mode = "r" , opt={}) -> IO (27425.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......=> "foo\n"
opt でプロセス起動のためのオプションや、パイプ IO オブジェクトの属性(エンコーディングや
読み書き能力)を指定することができます。
プロセス起動のためのオプションは Kernel.#spawn と、
パイプオブジェクトの... -
IO
. popen(env = {} , command , mode = "r" , opt={}) -> IO (27425.0) -
サブプロセスを実行し、そのプロセスの標準入出力 との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
...出力
との間にパイプラインを確立します。生成したパイプを IO オブジェクトとして返します。
p io = IO.popen("cat", "r+") # => #<IO:fd 4>
io.puts "foo"
io.close_write
p io.gets # => "foo\n"
サブプロセスを指定する方法は2......生成した IO オブジェクトを引数にブ
ロックを実行し、ブロックの実行結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
p IO.popen("cat", "r+") {|io|
io.puts "foo"
io.close_write
io.gets
}
#......=> "foo\n"
opt でプロセス起動のためのオプションや、パイプ IO オブジェクトの属性(エンコーディングや
読み書き能力)を指定することができます。
プロセス起動のためのオプションは Kernel.#spawn と、
パイプオブジェクトの... -
IO
. pipe {|read _ io , write _ io| . . . } -> object (27390.0) -
pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。
...
pipe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。
戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。
ブロックが渡された場合は、そのブロックに2つの IO オ......終了時に IO オブジェクトがもし close されていないならば
close します(close されていてるオブジェクトはそのままです)。
得られる2つの IO オブジェクトのエンコーディングを引数で指定することが
できます。
@param enc_str 読......ングを意味します。
@param ext_enc 読み込み側の外部エンコーディングを Encoding オブジェクトで指定します。
@param int_enc 読み込み側の内部エンコーディングを Encoding オブジェクトで指定します。
@param opts エンコーディング... -
IO
. pipe(enc _ str , **opts) {|read _ io , write _ io| . . . } -> object (27390.0) -
pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。
...
pipe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。
戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。
ブロックが渡された場合は、そのブロックに2つの IO オ......終了時に IO オブジェクトがもし close されていないならば
close します(close されていてるオブジェクトはそのままです)。
得られる2つの IO オブジェクトのエンコーディングを引数で指定することが
できます。
@param enc_str 読......ングを意味します。
@param ext_enc 読み込み側の外部エンコーディングを Encoding オブジェクトで指定します。
@param int_enc 読み込み側の内部エンコーディングを Encoding オブジェクトで指定します。
@param opts エンコーディング... -
IO
. pipe(ext _ enc) {|read _ io , write _ io| . . . } -> object (27390.0) -
pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。
...
pipe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。
戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。
ブロックが渡された場合は、そのブロックに2つの IO オ......終了時に IO オブジェクトがもし close されていないならば
close します(close されていてるオブジェクトはそのままです)。
得られる2つの IO オブジェクトのエンコーディングを引数で指定することが
できます。
@param enc_str 読......ングを意味します。
@param ext_enc 読み込み側の外部エンコーディングを Encoding オブジェクトで指定します。
@param int_enc 読み込み側の内部エンコーディングを Encoding オブジェクトで指定します。
@param opts エンコーディング... -
IO
. pipe(ext _ enc , int _ enc , **opts) {|read _ io , write _ io| . . . } -> object (27390.0) -
pipe(2) を実行して、相互につながった2つの IO オブジェクトを要素とする配列を返します。
...
pipe(2) を実行して、相互につながった2つの
IO オブジェクトを要素とする配列を返します。
戻り値の配列は最初の要素が読み込み側で、次の要素が書き込み側です。
ブロックが渡された場合は、そのブロックに2つの IO オ......終了時に IO オブジェクトがもし close されていないならば
close します(close されていてるオブジェクトはそのままです)。
得られる2つの IO オブジェクトのエンコーディングを引数で指定することが
できます。
@param enc_str 読......ングを意味します。
@param ext_enc 読み込み側の外部エンコーディングを Encoding オブジェクトで指定します。
@param int_enc 読み込み側の内部エンコーディングを Encoding オブジェクトで指定します。
@param opts エンコーディング...