るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.007秒)
トップページ > クエリ:nread[x] > クラス:Pathname[x]

別のキーワード

  1. socket so_nread
  2. io/wait nread
  3. io nread
  4. constants so_nread
  5. so_nread socket

ライブラリ

検索結果

Pathname#binread(*args) -> String | nil (6101.0)

IO.binread(self.to_s, *args)と同じです。

...O.binread(self.to_s, *args)と同じです。

//emlist[例][ruby]{
require "pathname"

pathname
= Pathname("testfile")
pathname
.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname
.binread(20) # => "This is line one\nThi"
pathname
.binread(20...
..., 10) # => "ne one\nThis is line "
//}

@see IO.binread...