6 lines
106 B
Ruby
6 lines
106 B
Ruby
class Year
|
|
def self.leap?(year)
|
|
(year % 4 == 0 and (year % 400 == 0 or year % 100 != 0))
|
|
end
|
|
end
|