Skip to content

Instantly share code, notes, and snippets.

@autarch
Created June 18, 2016 22:18
# 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