From: Shawn M Moore Date: Mon, 4 May 2009 17:04:13 +0000 (-0400) Subject: Add extends "SuperClass"; to the class snippet X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6166b805b888a1d79f7897940b1b4fc07d94ea19;p=gitmo%2Fmoose-dev-utils.git Add extends "SuperClass"; to the class snippet --- diff --git a/vim/moose_snippets.vim b/vim/moose_snippets.vim index ceefb90..541f05b 100644 --- a/vim/moose_snippets.vim +++ b/vim/moose_snippets.vim @@ -9,7 +9,7 @@ let st = g:snip_start_tag let et = g:snip_end_tag let cd = g:snip_elem_delim -exec "Snippet class package ".st."ClassName".et.";use Moose;".st.et."__PACKAGE__->meta->make_immutable;no Moose;1;" +exec "Snippet class package ".st."ClassName".et.";use Moose;extends '".st."SuperClass".et."';".st.et."__PACKAGE__->meta->make_immutable;no Moose;1;" exec "Snippet has has ".st."attr".et." => (is => 'rw',isa => 'Str',".st.et.");" exec "Snippet hasl has ".st."attr".et." => (is => 'rw',isa => 'Str',lazy_build => 1,);sub _build_".st."attr".et." {my $self = shift;".st.et."}" exec "Snippet sub sub ".st."name".et." {my $self = shift;".st.et."}"