Skip to content

Commit 31b778d

Browse files
author
Mostafa Kamal
committed
atom rumy
1 parent d2c8e7c commit 31b778d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

snippets/others.cson

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
'.source.ruby':
2+
"alias->ruby":
3+
"prefix": "rb-alias"
4+
"body": """
5+
alias new_name$1 old_name
6+
"""
7+
"alias_method->ruby":
8+
"prefix": "rb-aliasmethod"
9+
"body": """
10+
alias_method :new_name$1, :old_name
11+
"""
12+
"alias_method string ->ruby":
13+
"prefix": "rb-aliasmethod2"
14+
"body": """
15+
alias_method 'new_name$1', 'old_name'
16+
"""
17+
"upcase->ruby":
18+
"prefix": "rb-upcase"
19+
"body": """
20+
upcase$1
21+
"""
22+
"downcase->ruby":
23+
"prefix": "rb-downcase"
24+
"body": """
25+
downcase$1
26+
"""
27+
"integer->ruby":
28+
"prefix": "rb-integer"
29+
"body": """
30+
to_i$1
31+
"""
32+
"string->ruby":
33+
"prefix": "rb-string"
34+
"body": """
35+
to_s$1
36+
"""
37+
"require->ruby":
38+
"prefix": "rb-require"
39+
"body": """
40+
require '$1'
41+
"""

0 commit comments

Comments
 (0)