Skip to content

Instantly share code, notes, and snippets.

@mattetti
Created September 18, 2009 20:53
Show Gist options
  • Save mattetti/189283 to your computer and use it in GitHub Desktop.
Save mattetti/189283 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