aboutsummaryrefslogtreecommitdiff
path: root/template/ruby/pattern.stpl
blob: cc02af5f4556b816e533797aaad75f34d747559d (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
^\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_}}
	}