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

/ruby-mode/Each Element/map_with_index { |e, i| .. } (mapwi).yasnippet

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 159adaa08748422a188561df0e6bec08 MD5 | raw file
1# -*- mode: snippet -*-
2# key: mapwi-
3# contributor: Translated from TextMate Snippet
4# name: map_with_index { |e, i| .. }
5# --
6enum_with_index.map { |${1:e}, ${2:i}| $0 }