/ruby-mode/Methods/include Comparable .. (Comp).yasnippet

http://github.com/ridgetang/snippets · Unknown · 10 lines · 9 code · 1 blank · 0 comment · 0 complexity · 279501549a79224eb691d10dae5ae50d MD5 · raw file

  1. # -*- mode: snippet -*-
  2. # key: Comp
  3. # contributor: Translated from TextMate Snippet
  4. # name: include Comparable ..
  5. # --
  6. include Comparable
  7. def <=>(other)
  8. $0
  9. end