PageRenderTime 16ms CodeModel.GetById 0ms RepoModel.GetById 0ms 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. # --
  6. inject${1/.+/(/}${1:init}${1/.+/)/} { |${2:mem}, ${3:var}| $0 }