From: "Skye Shaw!@#$" Date: 2010-12-27T17:55:17+09:00 Subject: Re: inject issue On Dec 27, 12: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' Maybe this will help you understand: %w/ap mathn roots facets/.inject { |memo, i| p memo; p i; memo.send(:require, i) } > %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) %w/ap mathn roots facets/.inject(0) do |memo, i| p memo; p i; memo.send(:require, i) } > Is this a bug, or is this the expected operation? Expected, though it's an odd way to require libs. Use %/ap mathn .../.each { |lib| require lib }