From 63551117aac15a93e7b32b31b096484b0ed59cf2 Mon Sep 17 00:00:00 2001 From: Mike Foley Date: Tue, 26 Feb 2013 15:51:09 -0800 Subject: [PATCH] added each_with_object Ruby snippets --- snippets/ruby.snippets | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index 0365ec2..879677c 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -289,6 +289,12 @@ snippet eawid each_with_index do |${1:e},${2:i}| ${3} end +snippet eawo + each_with_object(${1:init}) { |${2:e}, ${3:var}| ${4} } +snippet eawod + each_with_object(${1:init}) do |${2:e}, ${3:var}| + ${4} + end snippet reve reverse_each { |${1:e}| ${2} } snippet reved