Improved ruby snip.

This commit is contained in:
ujihisa 2013-06-18 17:11:45 -07:00
parent 08fccee8e7
commit 13d34ada5d
2 changed files with 16 additions and 1 deletions

View File

@ -116,5 +116,17 @@ options word
snippet main
options head
if __FILE__ == \$0
${1:TARGET}
${0:TARGET}
end
# This idiom is only for legacy ruby such as 1.9.3
snippet filedir-legacy-compatibility
alias __dir__
abbr File.dirname(...)
File.dirname(File.expand_path(__FILE__))
snippet glob
options head
Dir.glob(${1:'**/*'}) do |fname|
${0:TARGET}
end

View File

@ -722,6 +722,9 @@ A: You can use |:NeoSnippetSource| for it.
==============================================================================
CHANGELOG *neosnippet-changelog*
2013-06-18
- Improved ruby snip.
2013-06-16
- Added groovy snip.