Bug on autoload

e$B1J0f!wCNG=!%6e9)Bg$G$9!%e(B

[ruby-dev:31923]e$B$G$b?($l$?7o$G$9$,!$e(B1.9 e$B$G!$Nc$($Pe(B

----<hoge.rb>-------------------------------
class HOGE; end

e$B$G$"$k$H$-!$e(Bautoload :HOGE, ‘hoge.rb’ [email protected]_Dj$7$?8e$Ge(B
require ‘hoge.rb’ e$B$H$9$k$H!$e(B


NameError: uninitialized constant HOGE
from /home/nagai/Ruby-work/hoge.rb:1:in `<top (required)>’

e$B$H$$$&$h$&$KNc30$,@[email protected]$7$/FI$`$3$H$,$G$-$^$;$s!%e(B
e$B$J$*!$e(B1.8 e$B$G$ONc30$H$O$J$j$^$;$s!%e(B

require e$B$r$;$:$Ke(B HOGE.new
e$B$J$I$HMQ$$$?>[email protected]$8$^$;$s!%e(B
autoload e$B$He(B require
e$B$H$,>WFM$7$?>l9g$K%H%i%V%k$K$J$k$h$&$G$9!%e(B

[email protected]$5$l$J$$$h$&$G$9$N$G5$$K$J$C$F%a!<%k$7$^$7$?$,!$e(B
known bug e$B$G4{$K:#[email protected]$KF~$C$F$$$k$N$G$7$?$i$4$a$s$J$5$$!%e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs