summaryrefslogtreecommitdiffstats
path: root/.vim/UltiSnips/perl.snippets
blob: 61d9a836cf4e35df7dce9961a422cda790081e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
snippet new
method new($class: $deps = {}) {
	${0}
	return $class->new_no_defaults($deps);
}

method new_no_defaults($class: $deps = {}) {
	my $self = {};
	bless $self, $class;
	$self->{deps} = $deps;
	return $self;
}

endsnippet