Add ruby module snippet

This commit is contained in:
Tom Willemse 2015-11-21 23:34:48 +01:00
parent d311cffd16
commit 216f9da807

View file

@ -0,0 +1,11 @@
# -*- mode: snippet; require-final-newline: nil -*-
# name: module ... end
# key: mod
# group: definitions
# --
module ${1:`(let ((fn (capitalize (file-name-nondirectory
(directory-file-name
default-directory)))))
(replace-regexp-in-string "_" "" fn t t))`}
$0
end