diff options
Diffstat (limited to '')
5 files changed, 15 insertions, 0 deletions
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 } |