/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
- # -*- mode: snippet -*-
- # key: opt
- # contributor: Translated from TextMate Snippet
- # name: option(..)
- # --
- opts.on( "-${1:o}", "--${2:long-option-name}"${3/^\s*$|(.*\S.*)/(?1:, )/}${3:String},
- "${4:Option description.}" ) do |${6:opt}|
- $0
- end