summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/ruby-mode/if
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/if6
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/ife8
2 files changed, 14 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/ruby-mode/if b/emacs.d/snippets/text-mode/ruby-mode/if
new file mode 100644
index 0000000..077b097
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/if
@@ -0,0 +1,6 @@
+#name : if ... end
+#group : control structure
+# --
+if ${1:condition}
+ $0
+end \ No newline at end of file
diff --git a/emacs.d/snippets/text-mode/ruby-mode/ife b/emacs.d/snippets/text-mode/ruby-mode/ife
new file mode 100644
index 0000000..e57d395
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/ife
@@ -0,0 +1,8 @@
+#name : if ... else ... end
+#group : control structure
+# --
+if ${1:condition}
+ $2
+else
+ $3
+end \ No newline at end of file