PageRenderTime 21ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/ruby-mode/Files/open("path;or;url", "w") do |doc| .. end (ope).yasnippet

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | a1aa89586627932ce0aa56787b816cc7 MD5 | raw file
  1. # -*- mode: snippet -*-
  2. # key: ope
  3. # contributor: Translated from TextMate Snippet
  4. # name: open("path/or/url", "w") { |io| .. }
  5. # --
  6. open(${1:"${2:path/or/url/or/pipe}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:io}| $0 }