Mercurial > hg > dotemacs
view elpa/yasnippet-0.11.0/snippets/ruby-mode/definitions/cls @ 156:c745e2cc79ee
elpy: update along with direct deps
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Mon, 27 Feb 2017 12:17:38 -0500 |
parents | elpa/yasnippet-0.9.1/snippets/ruby-mode/definitions/cls@ee4b6191b61e |
children |
line wrap: on
line source
# name: class ... end # contributor: hitesh <hitesh.jasani@gmail.com> # key: cls # -- 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