added each_with_object Ruby snippets
This commit is contained in:
parent
6e58f722f3
commit
63551117aa
@ -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