This website requires JavaScript.
Explore
Help
Sign In
walkah
/
exercism
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
Files
0282389eb451b8fa1fc6cd67180c5ce18ddbb90b
exercism
/
ruby
/
leap
/
leap.rb
T
5 lines
106 B
Ruby
Raw
Normal View
History
Unescape
Escape
ruby - leap
2018-09-16 15:09:35 -04:00
class
Year
def
self
.
leap?
(
year
)
(
year
%
4
==
0
and
(
year
%
400
==
0
or
year
%
100
!=
0
))
end
end
Reference in new issue
Copy Permalink