role snippet
Shawn M Moore [Sun, 10 May 2009 19:04:26 +0000 (15:04 -0400)]
vim/moose_snippets.vim

index 7b35cf5..343473a 100644 (file)
@@ -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}>',",