Ryan Davis
7/30/2008 11:15:00 PM
On Jul 30, 2008, at 13:59 , matt neuburg wrote:
> This rebuilt my documentation just fine. But
>
> ri File#read
>
> still gets a "nothing known" response.
>
> So, I'm using rdoc 2.1.0, I've regenerated the docmentation, but I'm
> still not seeing this new feature working. Do other people see it
> working? If so, what might be the problem here?
works for me:
% ri File::read
--------------------------------------------------------------- IO::read
IO.read(name, [length [, offset]] ) => string
------------------------------------------------------------------------
Opens the file, optionally seeks to the given offset, then returns
_length_ bytes (defaulting to the rest of the file). +read+
ensures
the file is closed before returning.
IO.read("testfile") #=> "This is line one\nThis is
line two\nT
his is line three\nAnd so on...\n"
IO.read("testfile", 20) #=> "This is line one\nThi"
IO.read("testfile", 20, 10) #=> "ne one\nThis is line "