On Thu, 23 Apr 2009 23:54:09 +0900 Michael Fellinger <m.fellinger / gmail.com> wrote: > Hello, > > I was wondering about a change in constant lookup behaviour between > the 1.8 and 1.9 lines. > > Given following source, which runs fine on 1.8, but will raise: > undefined method `dirname' for Rack::File:Class (NoMethodError) > > ################################################################### > > module Rack > class File > end > > class Builder > def initialize(&block) > instance_eval(&block) > end > end > end > > Rack::Builder.new{ File.dirname("foo") } > > ################################################################### > > This is boiled down from a real-world example where i got exactly > this error when running in 1.9. I know i can fix that by referencing > `::File::dirname`, but it would be nice to know definitely whether we > can rely on this new behaviour. > Sorry, I forgot a title for this mail... my bad -- ^ manveru