PageRenderTime 33ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/ruby-mode/Files/untitled.yasnippet

http://github.com/ridgetang/snippets
Unknown | 9 lines | 9 code | 0 blank | 0 comment | 0 complexity | 5233b95feea26664ce4d706155a73fe1 MD5 | raw file
  1. # -*- mode: snippet -*-
  2. # key: opt
  3. # contributor: Translated from TextMate Snippet
  4. # name: option(..)
  5. # --
  6. opts.on( "-${1:o}", "--${2:long-option-name}"${3/^\s*$|(.*\S.*)/(?1:, )/}${3:String},
  7. "${4:Option description.}" ) do |${6:opt}|
  8. $0
  9. end