Re: Documentation



lemontree75@xxxxxxxxx wrote:
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)

The online version of Programming Ruby (1st edition) makes this clear.
Not that it links directly to it.

<http://www.ruby-doc.org/docs/ProgrammingRuby/>

I'd suggest you use Programming Ruby instead.

.



Relevant Pages

  • Re: add element at end of array
    ... I searched 'Programming Ruby' and the online ... documentation but couldn't find a solution. ...
    (comp.lang.ruby)
  • Re: Static typing aint so bad, after all...
    ... the answer to this is simply better documentation. ... I've been a professional programmer way too long to ... I think a good first step is to read "Programming Ruby" by Dave Thomas ... posts about this in the ruby-talk archives. ...
    (comp.lang.ruby)
  • Re: How about "pure virtual methods"?
    ... The reason why this feature is missing, is that Python supports building ... fact that B is a subclass of A means that B is supposed to implement the ... > purposes, well then, that's not duplication of code, it's documentation, ... > you just getattr from the class (don't even have to bother instantiating ...
    (comp.lang.python)
  • Re: Design choice: subclassing or "supplementing"
    ... > Foo just for the purpose of overriding bar. ... I'd say any programmer that just ignores 50% of the inherited modules, ... and only searches the documentation for the other half deserves what ... If you subclass, then your "main" program says 'use MyFoo;' and the ...
    (comp.lang.perl.misc)
  • Re: Monitoring total memory usage?
    ... Martin DeMello wrote: ... >> the 'Programming Ruby' book by the Pragmatic Programmers. ... trying to find time to write some documentation, but I never seem to be ... Nikolai Weibull: now available free of charge at http://bitwi.se/! ...
    (comp.lang.ruby)