Merge pull request #373 from vzajkov/master

Add Ruby unless and Proc.new snippets
This commit is contained in:
Andrea Crotti 2020-04-18 12:50:18 +01:00 committed by GitHub
commit e066009c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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