L
lemontree75
Hi all,
I am starting to play with Ruby but I am really confused on where to
find decent documentation.
I was writing a simple program that uses Find to iterate over files and
calculates MD5 digests for every file. So for every found file I use
File.read to read it and compute the MD5. I have found the following
(frustrating) problems:
1) By looking at the documentation File.read doesn't exist as a method.
However by it seems that File is a subclass of IO that actually
contains read. But this is not clearly specified in the documentation
(it is only mentioned that it is closely associated with class IO,
whatever this means)
2) Exceptions... File.read raises an exception if, for example, I try
to read a file that requires higher access privileges. Again, the
documentation doesn't provide any kind of information of what type of
exceptions can be raised.
Is it RI the best source of documentation?
Where can I find a better one?
Thanks
I am starting to play with Ruby but I am really confused on where to
find decent documentation.
I was writing a simple program that uses Find to iterate over files and
calculates MD5 digests for every file. So for every found file I use
File.read to read it and compute the MD5. I have found the following
(frustrating) problems:
1) By looking at the documentation File.read doesn't exist as a method.
However by it seems that File is a subclass of IO that actually
contains read. But this is not clearly specified in the documentation
(it is only mentioned that it is closely associated with class IO,
whatever this means)
2) Exceptions... File.read raises an exception if, for example, I try
to read a file that requires higher access privileges. Again, the
documentation doesn't provide any kind of information of what type of
exceptions can be raised.
Is it RI the best source of documentation?
Where can I find a better one?
Thanks