Skip to content

Instantly share code, notes, and snippets.

@cjohansen
Forked from mattetti/gist:189283
Created September 18, 2009 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjohansen/189292 to your computer and use it in GitHub Desktop.
Save cjohansen/189292 to your computer and use it in GitHub Desktop.
def summer_monthly_usage
@summer_monthly_usage ||= rates.summer_months_nbr.inject(0) { |sum, m| sum + monthly_usage[m - 1] }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment