Ruby Inject Example