mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
12 lines
392 B
Plaintext
12 lines
392 B
Plaintext
# -*- mode: snippet -*-
|
|
# key: cla-
|
|
# contributor: Translated from TextMate Snippet
|
|
# name: class .. < DelegateClass .. initialize .. end
|
|
## condition: "source.ruby"
|
|
# --
|
|
class ${1:`(yas/ruby-infer-class-name)`} < DelegateClass(${2:ParentClass})
|
|
def initialize${3:$(if (string= yas/text "") "" "(")}${3:args}${3:$(if (string= yas/text "") "" ")")}
|
|
super(${4:del_obj})
|
|
$0
|
|
end
|
|
end |