diff options
Diffstat (limited to 'emacs/.emacs.d/snippets/ruby-mode')
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/ProductSeed | 5 | ||||
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/ProductSeedHW | 5 | ||||
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/ProductSeedHWGroup | 8 | ||||
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/describe | 7 | ||||
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/do | 6 | ||||
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/factory | 9 | ||||
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/fill_in | 5 | ||||
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/mod | 11 | ||||
-rw-r--r-- | emacs/.emacs.d/snippets/ruby-mode/reduce | 5 |
9 files changed, 0 insertions, 61 deletions
diff --git a/emacs/.emacs.d/snippets/ruby-mode/ProductSeed b/emacs/.emacs.d/snippets/ruby-mode/ProductSeed deleted file mode 100644 index 7e836c2..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/ProductSeed +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: ProductSeed -# key: pseed -# -- -Product.find_or_create_by_name(parent_id: $1, name: '$2', description: '$3', price: '$4')
\ No newline at end of file diff --git a/emacs/.emacs.d/snippets/ruby-mode/ProductSeedHW b/emacs/.emacs.d/snippets/ruby-mode/ProductSeedHW deleted file mode 100644 index 843b32e..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/ProductSeedHW +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: ProductSeedWithHW -# key: pseed -# -- -Product.find_or_create_by_name(parent_id: $1, name: '$2', description: '$3', price: '$4', width_in_cm: '$5', height_in_cm: '$6', width_in_mm: '${5:$(round (* 10 (string-to-int yas-text)))}', height_in_mm: '${6:$(round (* 10 (string-to-int yas-text)))}')
\ No newline at end of file diff --git a/emacs/.emacs.d/snippets/ruby-mode/ProductSeedHWGroup b/emacs/.emacs.d/snippets/ruby-mode/ProductSeedHWGroup deleted file mode 100644 index 25594c5..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/ProductSeedHWGroup +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: ProductSeedWithHWGroup -# key: pseed -# -- -Product.find_or_create_by_name(parent_id: $1, name: '$2', description: 'Small', price: '20.00', width_in_cm: '25.00', height_in_cm: '21.00', width_in_mm: '250', height_in_mm: '210') -Product.find_or_create_by_name(parent_id: $1, name: '$2', description: 'Medium', price: '20.00', width_in_cm: '30.00', height_in_cm: '25.80', width_in_mm: '300', height_in_mm: '258') -Product.find_or_create_by_name(parent_id: $1, name: '$2', description: 'Large', price: '20.00', width_in_cm: '35.00', height_in_cm: '30.00', width_in_mm: '350', height_in_mm: '300') -Product.find_or_create_by_name(parent_id: $1, name: '$2', description: 'Extra large', price: '20.00', width_in_cm: '40.00', height_in_cm: '34.00', width_in_mm: '400', height_in_mm: '340') diff --git a/emacs/.emacs.d/snippets/ruby-mode/describe b/emacs/.emacs.d/snippets/ruby-mode/describe deleted file mode 100644 index acd3a6b..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/describe +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: describe -# key: desc -# -- -describe '$1' do - $0 -end
\ No newline at end of file diff --git a/emacs/.emacs.d/snippets/ruby-mode/do b/emacs/.emacs.d/snippets/ruby-mode/do deleted file mode 100644 index 3c556fc..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/do +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: do -# key: do -# -- -do$0 -end
\ No newline at end of file diff --git a/emacs/.emacs.d/snippets/ruby-mode/factory b/emacs/.emacs.d/snippets/ruby-mode/factory deleted file mode 100644 index 619b2e5..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/factory +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: factory -# key: factory -# -- -FactoryGirl.define do - factory :${1:`(file-name-sans-extension (file-name-nondirectory buffer-file-name))`} do - $0 - end -end
\ No newline at end of file diff --git a/emacs/.emacs.d/snippets/ruby-mode/fill_in b/emacs/.emacs.d/snippets/ruby-mode/fill_in deleted file mode 100644 index 854b029..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/fill_in +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: fill_in -# key: fin -# -- -fill_in '$1', with: $2
\ No newline at end of file diff --git a/emacs/.emacs.d/snippets/ruby-mode/mod b/emacs/.emacs.d/snippets/ruby-mode/mod deleted file mode 100644 index 9af7d23..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/mod +++ /dev/null @@ -1,11 +0,0 @@ -# -*- 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
\ No newline at end of file diff --git a/emacs/.emacs.d/snippets/ruby-mode/reduce b/emacs/.emacs.d/snippets/ruby-mode/reduce deleted file mode 100644 index 3d4bfe4..0000000 --- a/emacs/.emacs.d/snippets/ruby-mode/reduce +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: reduce -# key: reduce -# -- -reduce { |a, e| $0 }
\ No newline at end of file |