summaryrefslogtreecommitdiffstats
path: root/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-04-24 23:29:38 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-04-24 23:29:38 +0200
commit7a6bb0f05e349068b0a89514f1da33d6d7de30a9 (patch)
treec202b81dfaf524e71e881c15aa509c45445a64b3 /emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea
parent66b95ab46d870f41c12c489eb21c9c82846d6112 (diff)
downloaddotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.gz
dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.xz
dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.zip
emacs.d/lisp/yasnippet: added yasnippet
Diffstat (limited to '')
-rw-r--r--emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea3
-rw-r--r--emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac3
-rw-r--r--emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai3
-rw-r--r--emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav3
-rw-r--r--emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi3
5 files changed, 15 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea
new file mode 100644
index 0000000..40cb2cd
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea
@@ -0,0 +1,3 @@
+#name : each { |...| ... }
+# --
+each { |${e}| $0 }
diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac
new file mode 100644
index 0000000..7a7ccd4
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac
@@ -0,0 +1,3 @@
+#name : each_cons(...) { |...| ... }
+# --
+each_cons(${1:2}) { |${group}| $0 }
diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai
new file mode 100644
index 0000000..b68cf69
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai
@@ -0,0 +1,3 @@
+#name : each_index { |i| ... }
+# --
+each_index { |${i}| $0 }
diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav
new file mode 100644
index 0000000..189ceff
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav
@@ -0,0 +1,3 @@
+#name : each_value { |val| ... }
+# --
+each_value { |${val}| $0 }
diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi
new file mode 100644
index 0000000..8718f7a
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi
@@ -0,0 +1,3 @@
+#name : each_with_index { |e, i| ... }
+# --
+each_with_index { |${e}, ${i}| $0 }