Created
June 18, 2016 22:18
-
-
Save autarch/9af544579d70a205c6261f4bf8a358f5 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
# sample(main) | |
multi trait_mod:<is>(Method $method, :$annoying!) { | |
$method.wrap( { say "Thank you for calling {$method.name}!"; callsame } ); | |
} | |
class Dog { | |
method bark is annoying { say 'woof' } | |
} | |
Dog.new.bark | |
# end-sample |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment