summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/ruby-mode/Comp
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/snippets/text-mode/ruby-mode/Comp')
-rw-r--r--emacs.d/snippets/text-mode/ruby-mode/Comp8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/ruby-mode/Comp b/emacs.d/snippets/text-mode/ruby-mode/Comp
new file mode 100644
index 0000000..03f2b35
--- /dev/null
+++ b/emacs.d/snippets/text-mode/ruby-mode/Comp
@@ -0,0 +1,8 @@
+#name : include Comparable; def <=> ... end
+#group : definitions
+# --
+include Comparable
+
+def <=> other
+ $0
+end \ No newline at end of file