Is there a better way than
puts ri Array
when I’m in irb?
Thanks,
···
–
Bil
Is there a better way than
puts ri Array
when I’m in irb?
Thanks,
–
Bil
Bil Kleb wrote:
Is there a better way than
puts
ri Array
when I’m in irb?
Thanks,
Put this in your .irbrc:
def ri arg
puts ri #{arg}
end
The you can do:
ri Array # because “#{Array}” == “Array”
ri :reverse
ri “Array#reverse”
etc.
Joel VanderWerf wrote:
Put this in your .irbrc:
def ri arg
putsri #{arg}
end
Beautiful. Thanks.
Dave, you might consider sticking this tidbit and integrating
the emacs ri interface by Colin Steele into the distribution
somehow?
–
Bil
Hello –
On Sat, 6 Jul 2002, Bil Kleb wrote:
Joel VanderWerf wrote:
Put this in your .irbrc:
def ri arg
putsri #{arg}
endBeautiful. Thanks.
Dave, you might consider sticking this tidbit and integrating
the emacs ri interface by Colin Steele into the distribution
somehow?
You’ll find not one but two emacs interfaces (Colin’s and mine) in the
contrib subdirectory of the ri distribution.
David
–
David Alan Black
home: dblack@candle.superlink.net
work: blackdav@shu.edu
Web: http://pirate.shu.edu/~blackdav
Bil Kleb wrote:
Dave, you might consider sticking this tidbit and integrating
the emacs ri interface by Colin Steele into the distribution
somehow?
Now that I look at the distribtion a bit closer, I find that
not only is Colin’s contribution there, but there are other
neat alternatives… Maybe a pointer to the contrib/README
in the toplevel README would suffice for boneheads like me?
Regards,
–
Bil
Bil Kleb W.L.Kleb@larc.nasa.gov writes:
Dave, you might consider sticking this tidbit and integrating
the emacs ri interface by Colin Steele into the distribution
somehow?
The irb hint is a great on - I’ve added it to the README. As DAB
pointed out, the existing distro is replete with emacs extensions.
Cheers
Dave
Bil Kleb W.L.Kleb@larc.nasa.gov writes:
Now that I look at the distribtion a bit closer, I find that
not only is Colin’s contribution there, but there are other
neat alternatives… Maybe a pointer to the contrib/README
in the toplevel README would suffice for boneheads like me?
I’ve added a README_FOR_BONEHEADS…
(Of course, they’ll never read it)
Dave