PageRenderTime 82ms CodeModel.GetById 41ms app.highlight 1ms RepoModel.GetById 38ms app.codeStats 0ms

/ruby-mode/Classes and Modules/module .. module_function .. end.yasnippet

http://github.com/ridgetang/snippets
Unknown | 10 lines | 9 code | 1 blank | 0 comment | 0 complexity | 3e70d6b68072d13189f215df73e33575 MD5 | raw file
 1# -*- mode: snippet -*-
 2# key: mod
 3# contributor: Translated from TextMate Snippet
 4# name: module .. module_function .. end
 5# --
 6module ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}
 7	module_function
 8	
 9	$0
10end