# -*- mode: snippet -*- # key: cla # contributor: Translated from TextMate Snippet # name: ClassName = Struct .. do .. end ## condition: "source.ruby" # -- ${1:`(yas/ruby-infer-class-name)`} = Struct.new(:${2:attr_names}) do def ${3:method_name} $0 end end