Skip to content

Commit a45ebb1

Browse files
committed
Merge pull request Shougo#29 from tetsuo692/master
add snippet for each_pair
2 parents 2b8a3fb + 9bd31a0 commit a45ebb1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

neosnippets/ruby.snip

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ snippet each_with_index
9898
options word
9999
each_with_index { |${1:#:variable}| ${2} }
100100

101+
snippet each_pair
102+
options word
103+
each_pair{ |${1:#:key},${2:value}| ${3} }
104+
105+
snippet each_pair_do
106+
options word
107+
each_pair |${1:key},${2:value}| do
108+
${3}
109+
end
110+
101111
snippet map
102112
options word
103113
map { |${1:#:variable}| ${2} }

0 commit comments

Comments
 (0)