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.139 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.138 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.137 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.136 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.135 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.134 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.133 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.132 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.131 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.130 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.129 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.128 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.127 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.126 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.125 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.124 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.123 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.122 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.121 tracks/coffeescript/exercises/bob/example.coffee
trackler-2.2.1.120 tracks/coffeescript/exercises/bob/example.coffee