From: Shawn M Moore Date: Mon, 4 May 2009 18:12:50 +0000 (-0400) Subject: around snippet X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=44a131b366016b80c8ca3b46ddede4df26a5332e;p=gitmo%2Fmoose-dev-utils.git around snippet --- diff --git a/vim/moose_snippets.vim b/vim/moose_snippets.vim index f9c3411..1c7e7ef 100644 --- a/vim/moose_snippets.vim +++ b/vim/moose_snippets.vim @@ -18,4 +18,5 @@ exec "Snippet class package ".st."ClassName".et.";use Moose;extends '".s exec "Snippet has has ".st."attr".et." => (is => 'rw',isa => '".st."Str".et."',".st.et.");" exec "Snippet hasl has ".st."attr".et." => (is => 'rw',isa => '".st."Str".et."',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."}" +exec "Snippet around around ".st."name".et." => sub {my $next = shift;my $self = shift;".st.et."};"