Where can I find doc on Ruby library?

I looked through my windows installation of Ruby, in the lib dir, there’re a
bunch of Ruby lib files, but I can’t seem to find any documentation for
them.

http://www.rubycentral.com/ref/index.html

doesn’t have docs for those classes.

In particular, I’m hoping to find some sort of Date object, that I can feed
in a date/time say “3:25 am”, and tell it to return it in a suitable format.
In PHP I would use a combination of strtotime() and date()

http://www.php.net/manual/en/function.strtotime.php
http://www.php.net/manual/en/function.date.php

I think Date/ParseDate does something similar, but I dunno how to use them.

Also, looking for some instructions on how to use the http/ftp classes under
the net folder.

Robo

Robo wrote:

I looked through my windows installation of Ruby, in the lib dir, there’re a
bunch of Ruby lib files, but I can’t seem to find any documentation for
them.

http://www.rubycentral.com/ref/index.html

doesn’t have docs for those classes.

That reference is just the built-in classes and modules, so they aren’t
supposed to be documented there. You want documentation for the standard
library. Go to
http://www.rubycentral.com/book/index.html
and click in on “Standard Library”
http://www.rubycentral.com/book/lib_standard.html

In particular, I’m hoping to find some sort of Date object, that I can feed
in a date/time say “3:25 am”, and tell it to return it in a suitable format.
In PHP I would use a combination of strtotime() and date()

http://www.php.net/manual/en/function.strtotime.php
PHP: date - Manual

I think Date/ParseDate does something similar, but I dunno how to use them.

See above.

Also, looking for some instructions on how to use the http/ftp classes under
the net folder.

And those would be documented in another chapter of the Pickaxe,
“Network and Web Libraries”:
http://www.rubycentral.com/book/lib_network.html

HTH

···


([ Kent Dahl ]/)_ ~ [ http://www.stud.ntnu.no/~kentda/ ]/~
))_student
/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_
/ö____/ (_engineering.discipline=Computer::Technology)