Install yasnippet and vala-snippets packages
This commit is contained in:
11
elpa/yasnippet-20160924.2001/snippets/ruby-mode/cls
Normal file
11
elpa/yasnippet-20160924.2001/snippets/ruby-mode/cls
Normal file
@@ -0,0 +1,11 @@
|
||||
#name : class ... end
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
#group : definitions
|
||||
# --
|
||||
class ${1:`(let ((fn (capitalize (file-name-nondirectory
|
||||
(file-name-sans-extension
|
||||
(or (buffer-file-name)
|
||||
(buffer-name (current-buffer))))))))
|
||||
(replace-regexp-in-string "_" "" fn t t))`}
|
||||
$0
|
||||
end
|
Reference in New Issue
Block a user