Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 239 Bytes
# This was cloned from a TextMate bundle for yasnippet.
#group : definitions
# key: cla.1
# --
${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