From: Szabolcs Szasz Date: 2002-10-20T23:11:18+09:00 Subject: Re: Strange String bug (around type.to_s from mod_ruby)? Thanks, but how does this explain the magic in bug.rb: replacing type.to_s with its exact literal value _does_ affect the output, as does trigger/stop the problem the subtle change from [2..-1] to [1..-1]. Sab ----- Original Message ----- From: "ts" To: "ruby-talk ML" Cc: Sent: Sunday, October 20, 2002 4:05 PM Subject: Re: Strange String bug (around type.to_s from mod_ruby)? > >>>>> "S" == Szabolcs Szasz writes: > > S> Fine. Now, from the browser (thru mod_ruby): > > mod_ruby run a script in an anonymous module, this is what you are seeing > > S> "#::Sub" > S> "Module 0lx4048974c>::Sub" > > The anonymous module is "Module 0lx4048974c" > > S> "Base" > S> "se" > > a "require" run at top level and in your case create the class Base > > S> If in bug.rhtml you don't require bug.rb but paste it in (see > S> comments in the code), then both printouts will break: > > S> "#::Sub" > S> "Module 0lx4048974c>::Sub" > S> "#::Base" > S> "Module 0lx4048974c>::Base" > > You have cut/paste the code and now the class Base is created in the > anonymous module. > > > > Guy Decoux > >