6件ヒット
[1-6件を表示]
(0.055秒)
種類
- 特異メソッド (4)
- インスタンスメソッド (2)
ライブラリ
- ビルトイン (3)
- etc (1)
-
io
/ console / size (2)
キーワード
-
console
_ size (1) -
default
_ console _ size (1) - pathconf (1)
- write (2)
-
write
_ nonblock (1)
検索結果
先頭5件
-
IO
. console _ size -> [Integer , Integer] (18910.0) -
端末のサイズを [rows, columns] で返します。
...端末のサイズを [rows, columns] で返します。
io/console が利用できない場合は、IO.default_console_size
の値を返します。
@see IO.default_console_size... -
IO
. default _ console _ size -> [Integer , Integer] (18910.0) -
デフォルトの端末のサイズを [rows, columns] で返します。
デフォルトの端末のサイズを [rows, columns] で返します。 -
IO
# write _ nonblock(string , exception: true) -> Integer | :wait _ writable (18907.0) -
IO をノンブロッキングモードに設定し、string を write(2) システムコールで書き出します。
...
IO をノンブロッキングモードに設定し、string を write(2) システムコールで書き出します。
write(2) が成功した場合、書き込んだ長さを返します。
EAGAIN, EINTR などは例外 Errno::EXXX として呼出元に報告されます。
書き込んだバ......ブジェクトに IO::WaitWritable が Object#extend
されます。よって IO::WaitWritable を write_nonblock のリトライが必要
かの判定に用いることができます。
@param string 自身に書き込みたい文字列を指定します。
@param exception false を指定す......と、書き込み時に Errno::EAGAIN、Errno::EWOULDBLOCK が発生
する代わりに :wait_writable を返します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX write(2) が失敗した場合に発生し... -
IO
# pathconf(name) -> Integer | nil (18607.0) -
fpathconf(3) で取得したファイルの設定変数の値を返します。
...場合は nil
を返します。(fpathconf(3) が -1 を返し、errno が設定されていない
場合)
@param name Etc モジュールの PC_ で始まる定数のいずれかを指定します。
//emlist[][ruby]{
require 'etc'
IO.pipe {|r, w|
p w.pathconf(Etc::PC_PIPE_BUF) # => 4096
}
//}... -
IO
. write(path , string , **opts) -> Integer (346.0) -
path で指定されるファイルを開き、string を書き込み、 閉じます。
...キーワード引数はファイルを開くときに使われ、エンコーディングなどを指定することができます。
詳しくは IO.open を見てください。
@param path ファイル名文字列
@param string 書き込む文字列
@param offset 書き込み開始位置
@par......s line three\nAnd so on...\n"
IO.write("testfile", text) # => 66
IO.write("testfile", "0123456789", 20) #=> 10
IO.read("testfile")
# => "This is line one\nThi0123456789two\nThis is line three\nAnd so on...\n"
IO.write("testfile", "0123456789") #=> 10
IO.read("testfile")......# => "0123456789"
//}
@see IO.binwrite... -
IO
. write(path , string , offset=nil , **opts) -> Integer (346.0) -
path で指定されるファイルを開き、string を書き込み、 閉じます。
...キーワード引数はファイルを開くときに使われ、エンコーディングなどを指定することができます。
詳しくは IO.open を見てください。
@param path ファイル名文字列
@param string 書き込む文字列
@param offset 書き込み開始位置
@par......s line three\nAnd so on...\n"
IO.write("testfile", text) # => 66
IO.write("testfile", "0123456789", 20) #=> 10
IO.read("testfile")
# => "This is line one\nThi0123456789two\nThis is line three\nAnd so on...\n"
IO.write("testfile", "0123456789") #=> 10
IO.read("testfile")......# => "0123456789"
//}
@see IO.binwrite...