mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
11 lines
349 B
Plaintext
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 |