PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/ruby-mode/Blocks/lambda { |args| .. } (lam).yasnippet

http://github.com/ridgetang/snippets
Unknown | 7 lines | 7 code | 0 blank | 0 comment | 0 complexity | 606469f393e6da3c4ec92d391543fa91 MD5 | raw file
1# -*- mode: snippet -*-
2# key: lam
3# contributor: Translated from TextMate Snippet
4# name: lambda { |args| .. }
5# expand-env: ((yas/wrap-around-region t))
6# --
7lambda { ${1:$(if (string= yas/text "") "" "|")}${1:variable}${1:$(if (string= yas/text "") "" "|")} $0 }