/ruby-mode/Files/File.foreach ("..") do |line| .. end (File).yasnippet

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

  1. # -*- mode: snippet -*-
  2. # key: File
  3. # contributor: Translated from TextMate Snippet
  4. # name: File.foreach ("..") { |line| .. }
  5. # --
  6. File.foreach(${1:"${2:path/to/file}"}) { |${3:line}| $0 }