Add Ruby unless and Proc.new snippets

This commit is contained in:
Valery Zajkov 2020-04-05 18:44:04 -04:00
parent d39c424fa8
commit 0dfd32f046
2 changed files with 15 additions and 0 deletions

6
snippets/ruby-mode/proc Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: Proc.new { |...| ... }
# key: proc
# contributor: Valery Zajkov
# --
Proc.new { |${1:argument}| $0 }

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: unless ... end
# group: control structure
# key: unless
# contributor: Valery Zajkov
# --
unless ${1:condition}
$0
end