PageRenderTime 21ms CodeModel.GetById 1ms RepoModel.GetById 0ms 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. # --
  6. File.open(${1:"${2:path/to/file}.dump"}, "wb") { |${3:file}| Marshal.dump(${4:obj}, ${3:file}) }