This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
role ABC::Duration { | |
has $.ticks; | |
our multi sub duration-from-parse($top) is export { | |
ABC::Duration.new(:ticks(($top // 1).Int)); | |
} | |
our multi sub duration-from-parse($top, $bottom) is export { | |
ABC::Duration.new(:ticks(($top // 1).Int / ($bottom // 2).Int)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment