projects
/
gitmo/moose-dev-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1884816
)
role snippet
Shawn M Moore [Sun, 10 May 2009 19:04:26 +0000 (15:04 -0400)]
vim/moose_snippets.vim
patch
|
blob
|
blame
|
history
diff --git
a/vim/moose_snippets.vim
b/vim/moose_snippets.vim
index
7b35cf5
..
343473a
100644
(file)
--- 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}>',",