Skip to content

Commit

Permalink
Added define_method ... end snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosbrando committed Feb 4, 2011
1 parent 4516b43 commit f9f2b2d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Snippets/define_method ___ end.tmSnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>define_method :${1:method_name} do${2: |${3:param1}${4:, ${5:param2}}|}
$0
end</string>
<key>name</key>
<string>define_method ... end</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
<string>defm</string>
<key>uuid</key>
<string>7BC1E159-0C90-4B0D-8808-80165C11F59C</string>
</dict>
</plist>
3 changes: 3 additions & 0 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@
<string>4A6EFD6B-88E2-4822-AD48-03460EDBC796</string>
<string>------------------------------------</string>
<string>988C8AEF-FC71-4455-9C4F-9338C05685A4</string>
<string>------------------------------------</string>
<string>7BC1E159-0C90-4B0D-8808-80165C11F59C</string>
</array>
<key>name</key>
<string>Methods</string>
Expand Down Expand Up @@ -473,6 +475,7 @@
<string>667083EE-62C3-11D9-B8CF-000D93589AF6</string>
<string>48D8E498-C9A5-4B1B-9A18-71A5860276FB</string>
<string>4E9A7A73-875C-11D9-897C-000393CBCE2E</string>
<string>7BC1E159-0C90-4B0D-8808-80165C11F59C</string>
<string>6670835F-62C3-11D9-B8CF-000D93589AF6</string>
<string>667082E6-62C3-11D9-B8CF-000D93589AF6</string>
<string>CD1609FA-47DA-4EE4-9C5B-5C56D953F5B1</string>
Expand Down

0 comments on commit f9f2b2d

Please sign in to comment.