/ruby-mode/Declarations/usage_if() (usai).yasnippet

http://github.com/ridgetang/snippets · Unknown · 8 lines · 8 code · 0 blank · 0 comment · 0 complexity · 0b2836bfd58d54bc6a068bd0e0f3ccf6 MD5 · raw file

  1. # -*- mode: snippet -*-
  2. # key: usai
  3. # contributor: Translated from TextMate Snippet
  4. # name: usage_if()
  5. # --
  6. if ARGV.$1
  7. abort "Usage: #{\$PROGRAM_NAME} ${2:ARGS_GO_HERE}"
  8. end