Sha256: abea78562eb49e11afa4492338eb3959773743814710fb091dc4ebc4bef741cc

Contents?: true

Size: 189 Bytes

Versions: 168

Compression:

Stored size: 189 Bytes

Contents

class Leap {

    Integer year

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

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

}

Version data entries

168 entries across 168 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.179 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.178 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.177 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.176 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.175 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.174 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.173 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.172 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.171 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.170 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.169 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.167 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.166 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.165 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.164 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.163 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.162 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.161 tracks/groovy/exercises/leap/Example.groovy
trackler-2.2.1.160 tracks/groovy/exercises/leap/Example.groovy