66件ヒット
[1-66件を表示]
(0.035秒)
種類
- 特異メソッド (44)
- インスタンスメソッド (22)
ライブラリ
- ビルトイン (33)
- etc (11)
-
io
/ console / size (22)
キーワード
-
console
_ size (11) -
default
_ console _ size (11) - pathconf (11)
- write (22)
-
write
_ nonblock (11)
検索結果
先頭5件
-
IO
. console _ size -> [Integer , Integer] (6303.0) -
端末のサイズを [rows, columns] で返します。
...端末のサイズを [rows, columns] で返します。
io/console が利用できない場合は、IO.default_console_size
の値を返します。
@see IO.default_console_size... -
IO
. default _ console _ size -> [Integer , Integer] (6303.0) -
デフォルトの端末のサイズを [rows, columns] で返します。
デフォルトの端末のサイズを [rows, columns] で返します。 -
IO
# write _ nonblock(string , exception: true) -> Integer | :wait _ writable (6302.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 (6202.0) -
fpathconf(3) で取得したファイルの設定変数の値を返します。
...fpathconf(3) で取得したファイルの設定変数の値を返します。
引数 name が制限に関する設定値であり、設定が制限がない状態の場合は 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 (115.0) -
path で指定されるファイルを開き、string を書き込み、 閉じます。
...ます。
詳しくは IO.open を見てください。
@param path ファイル名文字列
@param string 書き込む文字列
@param offset 書き込み開始位置
@param opts ファイルを開くときのキーワード引数
//emlist[例][ruby]{
text = "This is line one\nThis is line two\nT......is is 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 (115.0) -
path で指定されるファイルを開き、string を書き込み、 閉じます。
...ます。
詳しくは IO.open を見てください。
@param path ファイル名文字列
@param string 書き込む文字列
@param offset 書き込み開始位置
@param opts ファイルを開くときのキーワード引数
//emlist[例][ruby]{
text = "This is line one\nThis is line two\nT......is is 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...