Sha256: d13d6651cd45c8538441e7ddca3b9eae55da7a4df40bdca6910c921f08b26820

Contents?: true

Size: 306 Bytes

Versions: 396

Compression:

Stored size: 306 Bytes

Contents

class Bob
    hey: (message) -> switch
        when message.trim() == "" then "Fine. Be that way!"
        when message.match(/[a-zA-Z]/) and message == message.toUpperCase() then "Whoa, chill out!"
        when message[message.length - 1] == "?" then "Sure."
        else "Whatever."
module.exports = Bob

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.158 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.157 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.156 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.155 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.154 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.153 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.152 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.151 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.150 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.149 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.148 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.147 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.146 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.145 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.144 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.143 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.142 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.141 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.140 tracks/coffeescript/exercises/bob/example.coffee