/ruby-mode/Declarations/080 ruby case.yasnippet

http://github.com/ridgetang/snippets · Unknown · 9 lines · 9 code · 0 blank · 0 comment · 0 complexity · 38ced780c1abbafc0aab951036369609 MD5 · raw file

  1. # -*- mode: snippet -*-
  2. # key: case
  3. # contributor: Translated from TextMate Snippet
  4. # name: case … end
  5. # --
  6. case ${1:object}
  7. when ${2:condition}
  8. $0
  9. end