summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/ruby-mode/ea
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-10-22 05:30:58 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-10-22 05:30:58 +0200
commitc13334d651b13d8b047cb3dc35ad3e1ef239013f (patch)
treece0361f3bbbe502af91b33f896644d5695680223 /emacs.d/snippets/text-mode/ruby-mode/ea
parentff21663ded2283850f175e6de619feb5da91fef4 (diff)
downloaddotfiles-c13334d651b13d8b047cb3dc35ad3e1ef239013f.tar.gz
dotfiles-c13334d651b13d8b047cb3dc35ad3e1ef239013f.tar.xz
dotfiles-c13334d651b13d8b047cb3dc35ad3e1ef239013f.zip
added snippets for loading with module from dotfiles
Diffstat (limited to '')
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/ea4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/eac4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/eai4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/eav4
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/eawi4
5 files changed, 20 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/ruby-mode/ea b/emacs.d/snippets/text-mode/ruby-mode/ea
new file mode 100644
index 0000000..9cdf8dc
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/ea
@@ -0,0 +1,4 @@
+#name : each { |...| ... }
+#group : collections
+# --
+each { |${e}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/eac b/emacs.d/snippets/text-mode/ruby-mode/eac
new file mode 100644
index 0000000..f0d9cb1
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/eac
@@ -0,0 +1,4 @@
+#name : each_cons(...) { |...| ... }
+#group : collections
+# --
+each_cons(${1:2}) { |${group}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/eai b/emacs.d/snippets/text-mode/ruby-mode/eai
new file mode 100644
index 0000000..5b0ed67
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/eai
@@ -0,0 +1,4 @@
+#name : each_index { |i| ... }
+#group : collections
+# --
+each_index { |${i}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/eav b/emacs.d/snippets/text-mode/ruby-mode/eav
new file mode 100644
index 0000000..558e5b4
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/eav
@@ -0,0 +1,4 @@
+#name : each_value { |val| ... }
+#group : collections
+# --
+each_value { |${val}| $0 } \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/eawi b/emacs.d/snippets/text-mode/ruby-mode/eawi
new file mode 100644
index 0000000..edf8418
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/eawi
@@ -0,0 +1,4 @@
+#name : each_with_index { |e, i| ... }
+#group : collections
+# --
+each_with_index { |${e}, ${i}| $0 } \ No newline at end of file