# -*- mode: snippet -*- # key: File # contributor: Translated from TextMate Snippet # name: File.open("..") { |file| .. } ## condition: "source.ruby" # -- File.open(${1:"${2:path/to/file}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:file}| $0 }