diff options
| author | Simeon Simeonov | 2015-02-04 21:41:42 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2015-02-04 21:41:42 +0100 |
| commit | 897eee81de8b3f6adf0165f50e95600a7b89c20c (patch) | |
| tree | 5ee19c07c40e822e15a6443e5db5601c28913454 /.emacs.d/mysnippets/text-mode/ruby-mode/cls | |
| parent | 9a46567eb167e5aef4b2e760c5d6bdc4fe1ba06a (diff) | |
Standalone lisp and snippet repo
Diffstat (limited to '.emacs.d/mysnippets/text-mode/ruby-mode/cls')
| -rw-r--r-- | .emacs.d/mysnippets/text-mode/ruby-mode/cls | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/.emacs.d/mysnippets/text-mode/ruby-mode/cls b/.emacs.d/mysnippets/text-mode/ruby-mode/cls deleted file mode 100644 index da28fb7..0000000 --- a/.emacs.d/mysnippets/text-mode/ruby-mode/cls +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | #name : class ... end | ||
| 2 | #contributor : hitesh <hitesh.jasani@gmail.com> | ||
| 3 | #group : definitions | ||
| 4 | # -- | ||
| 5 | class ${1:`(let ((fn (capitalize (file-name-nondirectory | ||
| 6 | (file-name-sans-extension | ||
| 7 | (or (buffer-file-name) | ||
| 8 | (buffer-name (current-buffer)))))))) | ||
| 9 | (cond | ||
| 10 | ((string-match "_" fn) (replace-match "" nil nil fn)) | ||
| 11 | (t fn)))`} | ||
| 12 | $0 | ||
| 13 | end | ||
