PageRenderTime 124ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 77ms app.codeStats 0ms

/ruby-mode/Serialization/Marshal.dump(obj, file) (Md).yasnippet

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | fc3c10cbd0f0ee9f1024c2a3b72868c0 MD5 | raw file
1# -*- mode: snippet -*-
2# key: Md
3# contributor: Translated from TextMate Snippet
4# name: Marshal.dump(.., file)
5# --
6File.open(${1:"${2:path/to/file}.dump"}, "wb") { |${3:file}| Marshal.dump(${4:obj}, ${3:file}) }