tracks/perl6/exercises/clock/Example.pm6 in trackler-2.1.0.24 vs tracks/perl6/exercises/clock/Example.pm6 in trackler-2.1.0.25
- old
+ new
@@ -1,12 +1,12 @@
unit class Clock:ver<1>;
has Int:D $.hour = 0;
has Int:D $.minute = 0;
-method time is export {
+method time {
sprintf '%02d:%02d', ($!hour + $!minute div 60) % 24, $!minute % 60;
}
-method add-minutes (Int:D $min) is export {
+method add-minutes (Int:D $min) {
$!minute += $min and return self;
}