/ruby-mode/Serialization/YAML.dump(.., file) (Yd-).yasnippet
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | a9e6664c352b2774d9835a4eeacd53d0 MD5 | raw file
1# -*- mode: snippet -*- 2# key: Yd- 3# contributor: Translated from TextMate Snippet 4# name: YAML.dump(.., file) 5# -- 6File.open(${1:"${2:path/to/file}.yaml"}, "w") { |${3:file}| YAML.dump(${4:obj}, ${3:file}) }