Skip to content

Instantly share code, notes, and snippets.

@ezmobius
Forked from bryansray/gist:77333
Created March 11, 2009 05:38
def on_time_value
attendances.inject(0) do |sum, attendance|
sum += attendance.late? ? 0 : 5
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment