forked from textmate/ruby.tmbundle
/
class .. < DelegateClass .. initialize .. end (class).plist
63 lines (60 loc) · 1.76 KB
/
class .. < DelegateClass .. initialize .. end (class).plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>commands</key>
<array>
<dict>
<key>command</key>
<string>moveToBeginningOfDocumentAndModifySelection:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>command</key>
<string>insert_requires.rb delegate</string>
<key>input</key>
<string>selection</string>
<key>output</key>
<string>insertAsSnippet</string>
</dict>
<key>command</key>
<string>executeCommandWithOptions:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>bundlePath</key>
<string>/Users/james/Library/Application Support/TextMate/Bundles/Ruby Idioms.tmbundle</string>
<key>content</key>
<string>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</string>
<key>scope</key>
<string>source.ruby</string>
<key>supportPath</key>
<string>/Users/james/Library/Application Support/TextMate/Bundles/Ruby Idioms.tmbundle/Support</string>
<key>tabTrigger</key>
<string>class-</string>
<key>uuid</key>
<string>AFE1D078-EA16-45F5-AD8A-FAC1B523D861</string>
</dict>
<key>command</key>
<string>insertSnippetWithOptions:</string>
</dict>
</array>
<key>name</key>
<string>class .. < DelegateClass .. initialize .. end</string>
<key>scope</key>
<string>source.ruby</string>
<key>scopeType</key>
<string>local</string>
<key>tabTrigger</key>
<string>cla</string>
<key>uuid</key>
<string>121B334B-2AA6-4E9A-A8B8-BF93B627982B</string>
</dict>
</plist>