Created
October 3, 2018 11:24
-
-
Save Altreus/da60f1c2739b7ead0331c4a27cd7c40f to your computer and use it in GitHub Desktop.
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
role Frobber { | |
method frob ($x) { say $x } | |
} | |
role Frobnicator does Frobber { | |
has $.x; | |
multi method frob ($x) { self.Frobber::frob($x) } | |
multi method frob () { self.frob($.x) } | |
} | |
class Frobnify does Frobnicator {} | |
Frobnify.new(:x("cats")).frob; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment