/ruby-mode/Hashes/Hash.new { |hash, key| hash[key] = .. } (Has).yasnippet
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 971f595be2568403f1f59978f38e4b34 MD5 | raw file
- # -*- mode: snippet -*-
- # key: hash
- # contributor: Translated from TextMate Snippet
- # name: Hash.new { |hash, key| hash[key] = .. }
- # --
- Hash.new { |${1:hash}, ${2:key}| ${1:hash}[${2:key}] = $0 }