Merge pull request #176 from signaturelabs/ruby_each_with_object
each_with_object snippet for Ruby
This commit is contained in:
commit
f80cc3e03f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user