Skip to content

Instantly share code, notes, and snippets.

@perspectivezoom
Created June 13, 2012 17:10
Show Gist options
  • Save perspectivezoom/2925312 to your computer and use it in GitHub Desktop.
Save perspectivezoom/2925312 to your computer and use it in GitHub Desktop.
def leap_year?(yr)
yr % 4 == 0 && ( yr % 100 != 0 || yr % 400 == 0 )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment