Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created April 19, 2014 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/11085557 to your computer and use it in GitHub Desktop.
Save jnthn/11085557 to your computer and use it in GitHub Desktop.
multi sub trait_mod:<is>( Mu:U $type, :$entity! ) {
role Entity {}
$type.HOW does Entity;
}
class LM::Model::User
is entity
{
}
say LM::Model::User.HOW ~~ Entity;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment