mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-05 06:52:26 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: cla
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ClassName = Struct .. do .. end
|
||||
# --
|
||||
${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} = Struct.new(:${2:attr_names}) do
|
||||
def ${3:method_name}
|
||||
$0
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user