Ri from within irb


(Bil Kleb) #1

Is there a better way than

puts ri Array

when I’m in irb?

Thanks,

···


Bil


(Joel VanderWerf) #2

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.


(Bil Kleb) #3

Joel VanderWerf wrote:

Put this in your .irbrc:

def ri arg
puts ri #{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


(David Alan Black) #4

Hello –

···

On Sat, 6 Jul 2002, Bil Kleb wrote:

Joel VanderWerf wrote:

Put this in your .irbrc:

def ri arg
puts ri #{arg}
end

Beautiful. 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) #5

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? :slight_smile:

Regards,

···


Bil


(Dave Thomas) #6

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


(Dave Thomas) #7

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? :slight_smile:

I’ve added a README_FOR_BONEHEADS… :slight_smile:

(Of course, they’ll never read it)

Dave