Sha256: 0ec9022b8afb16e02e203c19f3da1eb1c7a66d5a9dde91ebc2a01145d48e0cb3

Contents?: true

Size: 189 Bytes

Versions: 148

Compression:

Stored size: 189 Bytes

Contents

class Year {

    Integer year

    Year(Integer year) {
        this.year = year
    }

    def isLeapYear() {
        (year % 4) == 0 && ((year % 400) == 0 || (year % 100) != 0)
    }

}

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
trackler-2.2.1.10 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.9 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.8 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.7 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.6 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.5 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.4 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.3 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.2 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.1 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.0 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.0.6 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.0.5 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.0.4 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.0.3 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.0.2 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.0.1 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.0.0 tracks/groovy/exercises/leap/Example.groovy
trackler-2.1.0.55 tracks/groovy/exercises/leap/Example.groovy
trackler-2.1.0.54 tracks/groovy/exercises/leap/Example.groovy