summaryrefslogtreecommitdiffstats
path: root/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt')
-rw-r--r--emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt
new file mode 100644
index 0000000..73c0046
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/control structure/upt
@@ -0,0 +1,5 @@
+#name : upto(...) { |n| ... }
+# --
+upto(${n}) { |${i}|
+ $0
+}