File.read not documented

Sorry for probably asking the obvious, but I can't find the
documentation of the File.read method in either the core or standard
API documentation (from ruby-docs.org). Am I missing something?
Cheers,
CyBerco

cyberco wrote:

Sorry for probably asking the obvious, but I can't find the
documentation of the File.read method in either the core or standard
API documentation (from ruby-docs.org). Am I missing something?
Cheers,
CyBerco

Look for IO.read

Hi,

"cyberco" <cyberco@gmail.com> writes:

Sorry for probably asking the obvious, but I can't find the
documentation of the File.read method in either the core or standard
API documentation (from ruby-docs.org). Am I missing something?

http://www.ruby-doc.org/core/classes/IO.src/M001148.html

···

--
eban

Look for IO.read

Thanks, Tim. I now see that the documentation of File includes a line
saying 'is closely associated with class IO'. Now, I would look at IO
if File extended it, but that is not the case. What's the bond between
File and IO?

Cheers,
CyBerco

cyberco wrote:

Look for IO.read

Thanks, Tim. I now see that the documentation of File includes a line
saying 'is closely associated with class IO'. Now, I would look at IO
if File extended it, but that is not the case. What's the bond between
File and IO?

File inherits from IO:

irb(main):004:0> File.ancestors
=> [File, IO, File::Constants, Enumerable, Object, Kernel]

File's a subclass of IO ...

···

On Mon, 24 Jan 2005 04:05:53 +0900, cyberco <cyberco@gmail.com> wrote:

> Look for IO.read

Thanks, Tim. I now see that the documentation of File includes a line
saying 'is closely associated with class IO'. Now, I would look at IO
if File extended it, but that is not the case. What's the bond between
File and IO?

saying 'is closely associated with class IO'. Now, I would look at IO
if File extended it, but that is not the case. What's the bond between
File and IO?

File inherits from IO:

irb(main):004:0> File.ancestors
=> [File, IO, File::Constants, Enumerable, Object, Kernel]

File does "extend" IO:

irb(main):001:0> File.superclass
=> IO