From: w_a_x_man Date: 2010-12-28T02:50:43+09:00 Subject: Re: inject issue On Dec 27, 2:10 am, jzakiya wrote: > When I do this: > > %w/ap mathn roots facets/.inject :require > > whatever is the first item in the list doesn't get loaded by 'require' > > When I do this: > > %w/ap mathn roots facets/.inject 0, :require or .inject(0, :require) > > then the first item is also loaded.  (the '0' can be essentially > anything) > > Is this a bug, or is this the expected operation? > > This behavior is consistent across 1.8.7, 1.9.1/2 and jruby using RVM. It's clearer to use fences. %w(ap mathn roots facets).each{|s| require s}