PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms 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# --
6Hash.new { |${1:hash}, ${2:key}| ${1:hash}[${2:key}] = $0 }