mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 18:34:17 +00:00
restructuring classic snippets dir to conform to new parenting specs
This commit is contained in:
6
snippets/ruby-mode/control structure/forin
Normal file
6
snippets/ruby-mode/control structure/forin
Normal file
@@ -0,0 +1,6 @@
|
||||
#name : for ... in ...; ... end
|
||||
#group : control structure
|
||||
# --
|
||||
for ${1:element} in ${2:collection}
|
||||
$0
|
||||
end
|
||||
6
snippets/ruby-mode/control structure/if
Normal file
6
snippets/ruby-mode/control structure/if
Normal file
@@ -0,0 +1,6 @@
|
||||
#name : if ... end
|
||||
#group : control structure
|
||||
# --
|
||||
if ${1:condition}
|
||||
$0
|
||||
end
|
||||
8
snippets/ruby-mode/control structure/ife
Normal file
8
snippets/ruby-mode/control structure/ife
Normal file
@@ -0,0 +1,8 @@
|
||||
#name : if ... else ... end
|
||||
#group : control structure
|
||||
# --
|
||||
if ${1:condition}
|
||||
$2
|
||||
else
|
||||
$3
|
||||
end
|
||||
4
snippets/ruby-mode/control structure/tim
Normal file
4
snippets/ruby-mode/control structure/tim
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : times { |n| ... }
|
||||
#group : control structure
|
||||
# --
|
||||
times { |${n}| $0 }
|
||||
6
snippets/ruby-mode/control structure/until
Normal file
6
snippets/ruby-mode/control structure/until
Normal file
@@ -0,0 +1,6 @@
|
||||
#name : until ... end
|
||||
#group: control structure
|
||||
# --
|
||||
until ${condition}
|
||||
$0
|
||||
end
|
||||
6
snippets/ruby-mode/control structure/upt
Normal file
6
snippets/ruby-mode/control structure/upt
Normal file
@@ -0,0 +1,6 @@
|
||||
#name : upto(...) { |n| ... }
|
||||
#group : control structure
|
||||
# --
|
||||
upto(${n}) { |${i}|
|
||||
$0
|
||||
}
|
||||
6
snippets/ruby-mode/control structure/when
Normal file
6
snippets/ruby-mode/control structure/when
Normal file
@@ -0,0 +1,6 @@
|
||||
#name : when ... end
|
||||
#group : control structure
|
||||
# --
|
||||
when ${condition}
|
||||
$0
|
||||
end
|
||||
6
snippets/ruby-mode/control structure/while
Normal file
6
snippets/ruby-mode/control structure/while
Normal file
@@ -0,0 +1,6 @@
|
||||
#name : while ... end
|
||||
#group : control structure
|
||||
# --
|
||||
while ${condition}
|
||||
$0
|
||||
end
|
||||
Reference in New Issue
Block a user