PageRenderTime 99ms CodeModel.GetById 96ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/ruby-mode/Each Element/inject(init) { |mem, var| .. } (inj).yasnippet

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 0c66e782d35f47455ea8f334e472399d MD5 | raw file
1# -*- mode: snippet -*-
2# key: inj
3# contributor: Translated from TextMate Snippet
4# name: inject(init) { |mem, var| .. }
5# --
6inject${1/.+/(/}${1:init}${1/.+/)/} { |${2:mem}, ${3:var}| $0 }