Add Ruby unless and Proc.new snippets
This commit is contained in:
parent
d39c424fa8
commit
0dfd32f046
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: Proc.new { |...| ... }
|
||||
# key: proc
|
||||
# contributor: Valery Zajkov
|
||||
# --
|
||||
Proc.new { |${1:argument}| $0 }
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: unless ... end
|
||||
# group: control structure
|
||||
# key: unless
|
||||
# contributor: Valery Zajkov
|
||||
# --
|
||||
unless ${1:condition}
|
||||
$0
|
||||
end
|
Loading…
Reference in New Issue