blob: de2d925f90a25d994f69b88ce7c7d03cd8a195f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
^\s*\zs\(\S.*\)\.each$
{{$1}}.each do |x|
{{_cursor_}}
end
^\s*\zs\(\S.*\)\.eachb$
{{$1}}.each {|x|
{{_cursor_}}
}
^\s*\zs\(\S.*\)\.eachi$
{{$1}}.each_with_index do |x,i|
{{_cursor_}}
end
^\s*\zs\(\S.*\)\.eachbi$
{{$1}}.each_with_index {|x,i|
{{_cursor_}}
}
^\s*\zs\(\S.*\)\.map$
{{$1}}.map do |x|
{{_cursor_}}
end
^\s*\zs\(\S.*\)\.mapb$
{{$1}}.map {|x|
{{_cursor_}}
}
^\s*\zs\(\S.*\)\.p$
p {{$1}}{{_cursor_}}
^\s*\zs\(\S.*\)\.puts$
puts {{$1}}{{_cursor_}}
|