PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/ruby-mode/Blocks/do |obj| .. end (doo).yasnippet

http://github.com/ridgetang/snippets
Unknown | 8 lines | 8 code | 0 blank | 0 comment | 0 complexity | a119c62cac7ac58033f24ba33478197b MD5 | raw file
1# -*- mode: snippet -*-
2# key: do
3# contributor: Translated from TextMate Snippet
4# name: Insert do |variable| … end
5# --
6do ${1:$(if (string= yas/text "") "" "|")}${1:variable}${1:$(if (string= yas/text "") "" "|")}
7  $0
8end