[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

File.read not documented

cyberco

1/23/2005 2:27:00 PM

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

6 Answers

Tim Hunter

1/23/2005 2:55:00 PM

0

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

WATANABE Hirofumi

1/23/2005 2:58:00 PM

0

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/M0...

--
eban


cyberco

1/23/2005 7:05:00 PM

0

> 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

Florian Gross

1/23/2005 7:41:00 PM

0

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]

Dave Burt

1/23/2005 8:22:00 PM

0

>> 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


Aredridel

1/23/2005 9:03:00 PM

0

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?

File's a subclass of IO ...