"ri intern" not working?

strange that ri intern is not giving the String#intern

but ri superclass will give the Class#superclass

have to use ri String#intern

(using ri from InstantRails 1.7)

SpringFlowers AutumnMoon wrote:

strange that ri intern is not giving the String#intern

but ri superclass will give the Class#superclass

have to use ri String#intern

(using ri from InstantRails 1.7)

oh it is actually showing… at the right hand side of a line…

by the way, sometimes ri is really slow. is there a way just to build
the index or speed up the search?

On Behalf Of SpringFlowers AutumnMoon

by the way, sometimes ri is really slow. is there a way just

to build the index or speed up the search?

do yourself a favor, use fastri (faster w more features)

botp@pc4all:~$ time fri string#intern
---------------------------------------------------------- String#intern
str.intern => symbol
str.to_sym => symbol

 Returns the Symbol corresponding to str, creating the symbol if it
 did not previously exist. See Symbol#id2name.

    "Koala".intern         #=> :Koala
    s = 'cat'.to_sym       #=> :cat
    s == :cat              #=> true
    s = '@cat'.to_sym      #=> :@cat
    s == :@cat             #=> true

 This can also be used to create symbols that cannot be represented
 using the :xxx notation.

    'cat and dog'.to_sym   #=> :"cat and dog"

real 0m3.006s
user 0m2.416s
sys 0m0.200s
botp@pc4all:~$ time qri string#intern
<…snip…>

real 0m3.036s
user 0m2.792s
sys 0m0.216s

botp@pc4all:~$ time ri string#intern
Bad argument: string#intern

real 0m12.493s
user 0m7.520s
sys 0m1.356s

ri is too slow and case sensitive.

kind regards -botp

SpringFlowers AutumnMoon [email protected] wrote:

by the way, sometimes ri is really slow. is there a way just to build
the index or speed up the search?

gem install fastri

m.