diff options
Diffstat (limited to 'emacs.d/lisp/yasnippet/snippets/ruby-mode/collections')
15 files changed, 45 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all new file mode 100644 index 0000000..afb68a7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/all @@ -0,0 +1,3 @@ +#name : all? { |...| ... } +# -- +all? { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any new file mode 100644 index 0000000..2f4f9f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/any @@ -0,0 +1,3 @@ +#name : any? { |...| ... } +# -- +any? { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify new file mode 100644 index 0000000..d1ad6f3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/classify @@ -0,0 +1,3 @@ +#name : classify { |...| ... } +# -- +classify { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect new file mode 100644 index 0000000..37cd4b5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/collect @@ -0,0 +1,3 @@ +#name : collect { |...| ... } +# -- +collect { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli new file mode 100644 index 0000000..f51d9a6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/deli @@ -0,0 +1,3 @@ +#name : delete_if { |...| ... } +# -- +delete_if { |${e} $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det new file mode 100644 index 0000000..599898c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/det @@ -0,0 +1,3 @@ +#name : detect { |...| ... } +# -- +detect { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea new file mode 100644 index 0000000..40cb2cd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/ea @@ -0,0 +1,3 @@ +#name : each { |...| ... } +# -- +each { |${e}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac new file mode 100644 index 0000000..7a7ccd4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eac @@ -0,0 +1,3 @@ +#name : each_cons(...) { |...| ... } +# -- +each_cons(${1:2}) { |${group}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai new file mode 100644 index 0000000..b68cf69 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eai @@ -0,0 +1,3 @@ +#name : each_index { |i| ... } +# -- +each_index { |${i}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav new file mode 100644 index 0000000..189ceff --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eav @@ -0,0 +1,3 @@ +#name : each_value { |val| ... } +# -- +each_value { |${val}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi new file mode 100644 index 0000000..8718f7a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/eawi @@ -0,0 +1,3 @@ +#name : each_with_index { |e, i| ... } +# -- +each_with_index { |${e}, ${i}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject new file mode 100644 index 0000000..eaa0f28 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/inject @@ -0,0 +1,3 @@ +#name : inject(...) { |...| ... } +# -- +inject(${1:0}) { |${2:injection}, ${3:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject new file mode 100644 index 0000000..032b06d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/reject @@ -0,0 +1,3 @@ +#name : reject { |...| ... } +# -- +reject { |${1:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select new file mode 100644 index 0000000..5ea4ef8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/select @@ -0,0 +1,3 @@ +#name : select { |...| ... } +# -- +select { |${1:element}| $0 } diff --git a/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip new file mode 100644 index 0000000..910de64 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/ruby-mode/collections/zip @@ -0,0 +1,3 @@ +#name : zip(...) { |...| ... } +# -- +zip(${enums}) { |${row}| $0 } |