yasnippet/extras/imported/ruby-mode/Serialization/YAML.dump(.., file) (Yd-).yasnippet
2009-08-29 17:59:02 +00:00

6 lines
208 B
Plaintext

# -*- mode: snippet -*-
# key: Yd-
# contributor: Translated from TextMate Snippet
# name: YAML.dump(.., file)
# --
File.open(${1:"${2:path/to/file}.yaml"}, "w") { |${3:file}| YAML.dump(${4:obj}, ${3:file}) }