/ruby-mode/Files/path_from_here( __ ).yasnippet

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

  1. # -*- mode: snippet -*-
  2. # key: patfh
  3. # contributor: Translated from TextMate Snippet
  4. # name: path_from_here( .. )
  5. # --
  6. File.join(File.dirname(__FILE__), *%w[${1:rel path here}])