Ruby Inline Array Sum usando Inject

Direto !

> [1, 2, 3].inject { |sum, i| sum + i }
=> 6