yasnippet/extras/imported/ruby-mode/Classes and Modules/class .. ParentClass .. initialize .. end.yasnippet

11 lines
349 B
Plaintext

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