From: Shawn M Moore Date: Sun, 10 May 2009 19:04:26 +0000 (-0400) Subject: role snippet X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=49ac30b591cfa7f1f35a702a952357bcb31d6494;p=gitmo%2Fmoose-dev-utils.git role snippet --- diff --git a/vim/moose_snippets.vim b/vim/moose_snippets.vim index 7b35cf5..343473a 100644 --- a/vim/moose_snippets.vim +++ b/vim/moose_snippets.vim @@ -46,6 +46,15 @@ call Snippet('class', [ \"no Moose;", \"", \"1;"]) +call Snippet('role', [ + \"package <{RoleName}>;", + \"use Moose::Role;", + \"", + \"<{}>", + \"", + \"no Moose::Role;", + \"", + \"1;"]) call Snippet('has', [ \"has <{attr}> => (", \ "is => '<{rw}>',",