Skip to content

Commit e066009

Browse files
authored
Merge pull request #373 from vzajkov/master
Add Ruby unless and Proc.new snippets
2 parents 9e806a3 + 0dfd32f commit e066009

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

snippets/ruby-mode/proc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# -*- mode: snippet -*-
2+
# name: Proc.new { |...| ... }
3+
# key: proc
4+
# contributor: Valery Zajkov
5+
# --
6+
Proc.new { |${1:argument}| $0 }

snippets/ruby-mode/unless

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- mode: snippet -*-
2+
# name: unless ... end
3+
# group: control structure
4+
# key: unless
5+
# contributor: Valery Zajkov
6+
# --
7+
unless ${1:condition}
8+
$0
9+
end

0 commit comments

Comments
 (0)