Added inject.rb for inject method.