Sha256: 489bd32609eacdd2e244b2b2d1a4e219bfbeccf35e2ef190dc8535919c0c1047

Contents?: true

Size: 425 Bytes

Versions: 101

Compression:

Stored size: 425 Bytes

Contents

#`[
  Declare class 'Bob' with version and unit-scope the class
  i.e. everything in this file is part of 'Bob'.
]
unit class Bob:ver<1>;

method hey ($msg) {
  given $msg.trim {
    when !*                        { 'Fine. Be that way!' }
    when /<:Upper>/ and $_.uc eq * { 'Whoa, chill out!'   }
    when /'?'$/                    { 'Sure.'              }
    default                        { 'Whatever.'          }
  }
}

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
trackler-2.2.1.72 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.71 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.70 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.69 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.68 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.67 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.66 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.65 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.64 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.63 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.62 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.61 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.60 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.59 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.58 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.57 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.56 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.55 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.54 tracks/perl6/exercises/bob/Example.pm6
trackler-2.2.1.53 tracks/perl6/exercises/bob/Example.pm6