[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

newbie: where is File documented?

r

12/29/2006 3:05:00 PM

Hello,

I'm trying to work some examples (The Poignant Guide), I can't seem to
find any official docs on the File class, found this half-finished
tutorial:

http://pleac.sourceforge.net/pleac_ruby/filea...

Is there a standard manual that would have this info?

It's not in ruby-doc.

Thanks
-R

4 Answers

Wim Vander Schelden

12/29/2006 3:19:00 PM

0

r wrote:
> Hello,
>
> I'm trying to work some examples (The Poignant Guide), I can't seem to
> find any official docs on the File class, found this half-finished
> tutorial:
>
> http://pleac.sourceforge.net/pleac_ruby/filea...
>
> Is there a standard manual that would have this info?
>
> It's not in ruby-doc.
>
> Thanks
> -R
>
>
>
>
http://www.ruby-doc.org/core/classes...

Isn't that what you were looking for?

Wim

--
Wim Vander Schelden
Bachelor Computer Science, University Ghent

http://nanob...
My weblog, powered by Ruby and BSD licensed.


hemant

12/29/2006 3:23:00 PM

0

r wrote:
> Hello,
>
> I'm trying to work some examples (The Poignant Guide), I can't seem to
> find any official docs on the File class, found this half-finished
> tutorial:
>
> http://pleac.sourceforge.net/pleac_ruby/filea...
>
> Is there a standard manual that would have this info?
>
> It's not in ruby-doc.
>

http://www.ruby-doc.org/core/classes...





Gavin Kistner

12/29/2006 3:23:00 PM

0

r wrote:
> I'm trying to work some examples (The Poignant Guide), I can't seem to
> find any official docs on the File class,
[snip]
> It's not in ruby-doc.

Er, what specifically are you looking for? Not this?
http://www.ruby-doc.org/core/classes...

You can see this same information if you have Ruby installed locally
with "ri File".

What's (oddly) missing from those docs is that the File class inherits
from the IO class (amonge others)
irb(main):001:0> File.ancestors
=> [File, IO, File::Constants, Enumerable, Object, Kernel]
....so when you see File.open in code, you may be confused because there
is no File.open class method documented. For those, of course, see the
IO docs (which even mention their tight association with File):
http://www.ruby-doc.org/core/class...

Or is there something else that you think is missing documentation?

r

12/30/2006 1:51:00 AM

0

Phrogz wrote:
[...]
> What's (oddly) missing from those docs is that the File class inherits
> from the IO class (amonge others)
> irb(main):001:0> File.ancestors
> => [File, IO, File::Constants, Enumerable, Object, Kernel]
> ...so when you see File.open in code, you may be confused because there
> is no File.open class method documented. For those, of course, see the
> IO docs (which even mention their tight association with File):
> http://www.ruby-doc.org/core/class...
>
> Or is there something else that you think is missing documentation?

yeah, was looking for the read() method, it's tucked away in IO.

thanks
-R