class-..-DelegateClass-..-initialize-..-end-(class).sublime-snippet (416B)
1 <snippet> 2 <content><![CDATA[class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} < DelegateClass(${2:ParentClass}) 3 def initialize${3/(^.*?\S.*)|.*/(?1:\()/}${3:args}${3/(^.*?\S.*)|.*/(?1:\))/} 4 super(${4:del_obj}) 5 6 $0 7 end 8 9 10 end]]></content> 11 <tabTrigger>cla-</tabTrigger> 12 <scope>source.ruby</scope> 13 <description>class .. < DelegateClass .. initialize .. end</description> 14 </snippet>