mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-14 17:42:03 +00:00
Last commit before tagging and releasing
This commit is contained in:
17
extras/imported/perl-mode/class.yasnippet
Normal file
17
extras/imported/perl-mode/class.yasnippet
Normal file
@@ -0,0 +1,17 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: class
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Package
|
||||
# --
|
||||
package ${1:ClassName};
|
||||
|
||||
${2:use base qw(${3:ParentClass});
|
||||
|
||||
}sub new {
|
||||
my \$class = shift;
|
||||
\$class = ref \$class if ref \$class;
|
||||
my \$self = bless {}, \$class;
|
||||
\$self;
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user