module Enumerable def injecting(s) inject(s) do |k, i| yield(k, i); k end end end