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:
4
snippets/ruby-mode/collections/all
Normal file
4
snippets/ruby-mode/collections/all
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : all? { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
all? { |${e}| $0 }
|
||||
4
snippets/ruby-mode/collections/any
Normal file
4
snippets/ruby-mode/collections/any
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : any? { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
any? { |${e}| $0 }
|
||||
4
snippets/ruby-mode/collections/classify
Normal file
4
snippets/ruby-mode/collections/classify
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : classify { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
classify { |${e}| $0 }
|
||||
4
snippets/ruby-mode/collections/collect
Normal file
4
snippets/ruby-mode/collections/collect
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : collect { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
collect { |${e}| $0 }
|
||||
4
snippets/ruby-mode/collections/deli
Normal file
4
snippets/ruby-mode/collections/deli
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : delete_if { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
delete_if { |${e} $0 }
|
||||
4
snippets/ruby-mode/collections/det
Normal file
4
snippets/ruby-mode/collections/det
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : detect { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
detect { |${e}| $0 }
|
||||
4
snippets/ruby-mode/collections/ea
Normal file
4
snippets/ruby-mode/collections/ea
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : each { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each { |${e}| $0 }
|
||||
4
snippets/ruby-mode/collections/eac
Normal file
4
snippets/ruby-mode/collections/eac
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : each_cons(...) { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each_cons(${1:2}) { |${group}| $0 }
|
||||
4
snippets/ruby-mode/collections/eai
Normal file
4
snippets/ruby-mode/collections/eai
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : each_index { |i| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each_index { |${i}| $0 }
|
||||
4
snippets/ruby-mode/collections/eav
Normal file
4
snippets/ruby-mode/collections/eav
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : each_value { |val| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each_value { |${val}| $0 }
|
||||
4
snippets/ruby-mode/collections/eawi
Normal file
4
snippets/ruby-mode/collections/eawi
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : each_with_index { |e, i| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each_with_index { |${e}, ${i}| $0 }
|
||||
4
snippets/ruby-mode/collections/inject
Normal file
4
snippets/ruby-mode/collections/inject
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : inject(...) { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
inject(${1:0}) { |${2:injection}, ${3:element}| $0 }
|
||||
4
snippets/ruby-mode/collections/reject
Normal file
4
snippets/ruby-mode/collections/reject
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : reject { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
reject { |${1:element}| $0 }
|
||||
4
snippets/ruby-mode/collections/select
Normal file
4
snippets/ruby-mode/collections/select
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : select { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
select { |${1:element}| $0 }
|
||||
4
snippets/ruby-mode/collections/zip
Normal file
4
snippets/ruby-mode/collections/zip
Normal file
@@ -0,0 +1,4 @@
|
||||
#name : zip(...) { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
zip(${enums}) { |${row}| $0 }
|
||||
Reference in New Issue
Block a user