Skip to content

Instantly share code, notes, and snippets.

@bryansray
Created March 11, 2009 05:35
Show Gist options
  • Save bryansray/77333 to your computer and use it in GitHub Desktop.
Save bryansray/77333 to your computer and use it in GitHub Desktop.
def on_time_value
sum = 0
attendances.each do |attendance|
sum += attendance.late? ? 0 : 5
end
sum
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment