From 7f68a9972c63df26ea722c9fed856a8eecdece27 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 21 Aug 2023 12:29:31 -0700 Subject: [PATCH] add hasmoo snippet --- emacs_el/snippets/cperl-mode/hasmoo | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 emacs_el/snippets/cperl-mode/hasmoo diff --git a/emacs_el/snippets/cperl-mode/hasmoo b/emacs_el/snippets/cperl-mode/hasmoo new file mode 100644 index 0000000..2754fff --- /dev/null +++ b/emacs_el/snippets/cperl-mode/hasmoo @@ -0,0 +1,19 @@ +# -*- mode: snippet -*- +# name: hasmoo +# key: hasmoo +# -- +=item ${1:attribute} + +$0 + +=cut + +has $1 => (is => 'ro', + isa => 'Str', + lazy => 1, + builder => '_build_$1', + ); + +sub _build_$1 { + +} \ No newline at end of file -- 2.39.2