# -*- mode: snippet -*- # key: cla # contributor: Translated from TextMate Snippet # name: class .. initialize .. end ## condition: "source.ruby" # -- class ${1:`(yas/ruby-infer-class-name)`} def initialize${2:$(if (string= yas/text "") "" "(")}${2:args}${2:$(if (string= yas/text "") "" ")")} $0 end end