Each Element ruby snippets updated to work with yasnippet.

This commit is contained in:
Rob Christie 2009-11-02 01:34:10 +00:00
parent 88287640e9
commit 02408621e8

View File

@ -4,4 +4,4 @@
# name: inject(init) { |mem, var| .. }
## condition: "source.ruby"
# --
inject${1/.+/(/}${1:init}${1/.+/)/} { |${2:mem}, ${3:var}| $0 }
inject${1:$(if (string= yas/text "") "" "(")}${1:init}${1:$(if (string= yas/text "") "" ")")} { |${2:mem}, ${3:var}| $0 }