mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-15 14:03:04 +00:00
14 lines
369 B
Plaintext
14 lines
369 B
Plaintext
# -*- mode: snippet -*-
|
|
# key: cla-
|
|
# contributor: Translated from TextMate Snippet
|
|
# name: class .. < DelegateClass .. initialize .. end
|
|
# --
|
|
class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} < DelegateClass(${2:ParentClass})
|
|
def initialize${3/(^.*?\S.*)|.*/(?1:\()/}${3:args}${3/(^.*?\S.*)|.*/(?1:\))/}
|
|
super(${4:del_obj})
|
|
|
|
$0
|
|
end
|
|
|
|
|
|
end |