-
Notifications
You must be signed in to change notification settings - Fork 2
/
ruby.json
48 lines (48 loc) · 1.32 KB
/
ruby.json
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
{
"shebang-ruby-r": {
"prefix": "shebang",
"body": [
"#!/usr/bin/env ruby"
],
"description": "Adds a shebang for Ruby scripts"
},
"shebang-ruby-encoding-r": {
"prefix": "shebang+encoding",
"body": [
"#!/usr/bin/env ruby",
"# -*- coding: ${1|utf-8,latin-1,ascii|} -*-"
],
"description": "Adds a shebang and an encoding magic comment for Ruby scripts"
},
"shebang-ruby": {
"prefix": "#!ruby",
"body": [
"#!/usr/bin/env ruby"
],
"description": "Adds a shebang for Ruby scripts"
},
"shebang-ruby-encoding": {
"prefix": "#!ruby+encoding",
"body": [
"#!/usr/bin/env ruby",
"# -*- coding: ${1|utf-8,latin-1,ascii|} -*-"
],
"description": "Adds a shebang and an encoding magic comment for Ruby scripts"
},
"shebang-encoding": {
"prefix": "#encoding",
"body": [
"# -*- coding: ${1|utf-8,latin-1,ascii|} -*-"
],
"description": "Adds a magic comment for Ruby file encoding"
},
"Ruby Multiline Comment": {
"prefix": "multiline",
"body": [
"=begin",
"",
"=end"
],
"description": "Generate a multiline comment for Ruby"
}
}