yasnippet/extras/imported/ruby-mode/Hashes/Hash.new { |hash, key| hash[key] = .. } (Has).yasnippet
2009-08-29 17:59:02 +00:00

6 lines
196 B
Plaintext

# -*- 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 }