Merge pull request #373 from vzajkov/master
Add Ruby unless and Proc.new snippets
This commit is contained in:
commit
e066009c3b
|
@ -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