From: Don Armstrong Date: Mon, 21 Aug 2023 19:29:31 +0000 (-0700) Subject: add hasmoo snippet X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7f68a9972c63df26ea722c9fed856a8eecdece27;p=lib.git add hasmoo snippet --- 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