Skip to content

Commit c7e61b7

Browse files
Iwakura Tarolpil
Iwakura Taro
authored andcommitted
Rejecting lines like grep -v
1 parent 7fe1302 commit c7e61b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

snippets/ruby.snippets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ snippet finad
376376
end
377377
snippet gre
378378
grep(${1:/pattern/}) { |${2:match}| ${0} }
379+
snippet grepv
380+
select { |${1:line}| $1 !~ ${2:/pattern/} }${0}
379381
snippet sub
380382
${1:g}sub(${2:/pattern/}) { |${3:match}| ${0} }
381383
snippet sca

0 commit comments

Comments
 (0)