instance method Pathname#binread

binread(*args) -> String | nil[permalink][rdoc]

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



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_ALSO] IO.binread