mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
15 lines
345 B
Plaintext
15 lines
345 B
Plaintext
#original contributor : Orestis Markou
|
|
#contributor : Nishio Hirokazu
|
|
#name : class ... :
|
|
# --
|
|
class ${1:ClassName}(${2:object}):
|
|
"docstring for $1"
|
|
def __init__(self, ${3:args}):
|
|
${3:$
|
|
(mapconcat
|
|
'(lambda (x) (concat "self." x " = " x))
|
|
(split-string text ", ")
|
|
(concat "\n" (make-string (current-column) 32)))
|
|
}
|
|
$0
|