mirror of
https://github.com/atom/atom.git
synced 2026-02-15 17:15:24 -05:00
31 lines
811 B
Plaintext
31 lines
811 B
Plaintext
<?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>content</key>
|
|
<string>class ${1:BlankSlate}
|
|
instance_methods.each { |meth| undef_method(meth) unless meth =~ /\A__/ }
|
|
|
|
def initialize${2/(^.*?\S.*)|.*/(?1:\()/}${2:args}${2/(^.*?\S.*)|.*/(?1:\))/}
|
|
@${3:delegate} = ${4:delegate_object}
|
|
|
|
$0
|
|
end
|
|
|
|
def method_missing(meth, *args, &block)
|
|
@${3:delegate}.send(meth, *args, &block)
|
|
end
|
|
|
|
|
|
end</string>
|
|
<key>name</key>
|
|
<string>class BlankSlate .. initialize .. end</string>
|
|
<key>scope</key>
|
|
<string>source.ruby</string>
|
|
<key>tabTrigger</key>
|
|
<string>cla</string>
|
|
<key>uuid</key>
|
|
<string>E98FB8F9-7302-431D-8BF2-275A68A6126C</string>
|
|
</dict>
|
|
</plist>
|