…and I’m trying to see the documentation for these class methods.
So I execute “ri File#open” and “ri File#foreach” and I get nothing.
I installed fast-ri and I execute “qri File#foreach” and, again, get
nothing.
Interestingly, when I do “qri File#open” I get the documentation for
“Kernel#open”. However, File#open isn’t kernel#open because the latter
can open a subprocess (as in “cmd = open(’|date’)”). So I know that “qri
File#open” too doesn’t give me the documentation for File#open.
So my question is:
How do I get documentaiton for the methods of class File?
I installed fast-ri and I execute “qri File#foreach” and, again, get
nothing.
Interestingly, when I do “qri File#open” I get the documentation for
“Kernel#open”. However, File#open isn’t kernel#open because the latter
can open a subprocess (as in “cmd = open(‘|date’)”). So I know that “qri
File#open” too doesn’t give me the documentation for File#open.
So my question is:
How do I get documentaiton for the methods of class File?
I discovered an error on my part: I should have used ‘::’ instead of
‘.’. That’s because I’m looking for the class methods. However, that
didn’t solve my problem completely:
Rick Denatale wrote:
True, but fri/qri finds inherited methods:
$ qri File.open
[…]
Now, suppose I want the documentation for File::new. What should I do?
I fear that Mauricio has lost interest in his Ruby stuff and appears
to have moved off to other shiny objects.
It looks like the solution is to go back to using ri rather than
fri/qri, sigh. The ri command now uses a cache so that after the
first time, it’s faster than it used to be.