module-..-ClassMethods-..-end.sublime-snippet (427B)
1 <snippet> 2 <content><![CDATA[module ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} 3 module ClassMethods 4 $0 5 end 6 7 module InstanceMethods 8 9 end 10 11 def self.included(receiver) 12 receiver.extend ClassMethods 13 receiver.send :include, InstanceMethods 14 end 15 end]]></content> 16 <tabTrigger>mod</tabTrigger> 17 <scope>source.ruby</scope> 18 <description>module .. ClassMethods .. end</description> 19 </snippet>