yasnippet/extras/imported/ruby-mode/Files/open("path;or;url", "w") do |doc| .. end (ope).yasnippet
2009-08-29 17:59:02 +00:00

6 lines
251 B
Plaintext

# -*- mode: snippet -*-
# key: ope
# contributor: Translated from TextMate Snippet
# name: open("path/or/url", "w") { |io| .. }
# --
open(${1:"${2:path/or/url/or/pipe}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:io}| $0 }