class-..-Struct-..-initialize-..-end.sublime-snippet (310B)
1 <snippet> 2 <content><![CDATA[${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} = Struct.new(:${2:attr_names}) do 3 def ${3:method_name} 4 $0 5 end 6 7 8 end]]></content> 9 <tabTrigger>cla</tabTrigger> 10 <scope>source.ruby</scope> 11 <description>ClassName = Struct .. do .. end</description> 12 </snippet>