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

7 lines
199 B
Plaintext

# -*- mode: snippet -*-
# key: mapwi-
# contributor: Translated from TextMate Snippet
# name: map_with_index { |e, i| .. }
## condition: "source.ruby"
# --
enum_with_index.map { |${1:e}, ${2:i}| $0 }