yasnippet/extras/imported/ruby-mode/Classes and Modules/class .. DelegateClass .. initialize .. end (class).yasnippet

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