Skip to content

Instantly share code, notes, and snippets.

@cypher
Forked from mattetti/gist:189283
Created September 18, 2009 21:07
Show Gist options
  • Save cypher/189291 to your computer and use it in GitHub Desktop.
Save cypher/189291 to your computer and use it in GitHub Desktop.
def summer_monthly_usage
@summer_monthly_usage ||= rates.summer_months_nbr.
map{ |month| monthly_usage[month - 1] }.
inject(0, &:+)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment