blob: 64ef27edb706b42dc10dbb9ebf315c7359301f85 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#name : class ... end
#contributor : hitesh <hitesh.jasani@gmail.com>
# --
class ${1:`(let ((fn (capitalize (file-name-nondirectory
(file-name-sans-extension
(or (buffer-file-name)
(buffer-name (current-buffer))))))))
(cond
((string-match "_" fn) (replace-match "" nil nil fn))
(t fn)))`}
$0
end
|