/ruby-mode/Strings/scan(;..;) { |match| .. } (sca).yasnippet

http://github.com/ridgetang/snippets · Unknown · 6 lines · 6 code · 0 blank · 0 comment · 0 complexity · c893b48765fce08b481b4233264ff0b2 MD5 · raw file

  1. # -*- mode: snippet -*-
  2. # key: sca
  3. # contributor: Translated from TextMate Snippet
  4. # name: scan(/../) { |match| .. }
  5. # --
  6. scan(/${1:pattern}/) { |${2:match}| $0 }