PageRenderTime 2059ms CodeModel.GetById 164ms RepoModel.GetById 24ms app.codeStats 0ms

/ruby-mode/Hashes/Hash.new { |hash, key| hash[key] = .. } (Has).yasnippet

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 971f595be2568403f1f59978f38e4b34 MD5 | raw file
  1. # -*- mode: snippet -*-
  2. # key: hash
  3. # contributor: Translated from TextMate Snippet
  4. # name: Hash.new { |hash, key| hash[key] = .. }
  5. # --
  6. Hash.new { |${1:hash}, ${2:key}| ${1:hash}[${2:key}] = $0 }