Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 257 Bytes
use v6;
use ABC::Duration;
class ABC::Rest does ABC::Duration {
has $.type;
method new($type, ABC::Duration $duration) {
self.bless(:$type, :ticks($duration.ticks));
}
method Str() {
$.type ~ self.duration-to-str;
}
}