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

/ruby-mode/Idioms/class_from_name() (clafn).yasnippet

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 3afc8935706ba4e56d2103be200cd1f8 MD5 | raw file
1# -*- mode: snippet -*-
2# key: clafn
3# contributor: Translated from TextMate Snippet
4# name: class_from_name()
5# --
6split("::").inject(Object) { |par, const| par.const_get(const) }