Lib/irb/completion.rb needs .to_s


#1

e$B@.@%$G$9!#e(B

trunk e$B$Ne(B irb e$B$,Jd405!G=$rM-8z$K$7$F$$$k$HNc30;~$KMn$A$^$9!#e(B
e.to_s e$B$rK:$l$F$$$k$+$i$N$h$&$G$9!#e(B

Index: lib/irb/completion.rb

— lib/irb/completion.rb (revision 12716)
+++ lib/irb/completion.rb (working copy)
@@ -89,7 +89,7 @@
rescue Exception
candidates = []
end

  •   candidates.grep(/^#{message}/).collect{|e| receiver + "::" + e}
    
  •   candidates.grep(/^#{message}/).collect{|e| receiver + "::" + 
    

e.to_s}

   when /^(:[^:.]+)\.([^.]*)$/
    # Symbol

#2

e$B$1$$$8$e!w$$$7$D$+$G$9e(B.

In [ruby-dev:31148] the message: “[ruby-dev:31148]
lib/irb/completion.rb needs .to_s”, on Jul/06 18:58(JST) “NARUSE, Yui”
writes:

e$B@.@%$G$9!#e(B

trunk e$B$Ne(B irb e$B$,Jd405!G=$rM-8z$K$7$F$$$k$HNc30;~$KMn$A$^$9!#e(B
e.to_s e$B$rK:$l$F$$$k$+$i$N$h$&$G$9!#e(B

e$B$"$j$,$H$&8f:B$$$^$9e(B.
obj.methods e$BEy$,%7%s%%k$rJV$9$h$&$K$J$C$?$+$i$G$9$Me(B…

e$B$?$@e(B, e$B$3$l$@$1$@$HNc30$,H/@8$7$J$$$+$b$7$l$J$$$G$9$,e(B,
e$B$A$c$s$HF0:n$7$Fe(B
e$B$J$$$G$9$Me(B.

e$B$J$s$+e(B, e$BA4BNE*$K$d$P$=$&$J$N$Ge(B,
e$B$A$c$s$H%A%’%C%/$7$^$9e(B.

__
---------------------------------------------------->> e$B@PDMe(B
e$B7=<ye(B <<—
---------------------------------->> e-mail: removed_email_address@domain.invalid <<—