File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 106
106
<array >
107
107
<dict >
108
108
<key >begin </key >
109
- <string >\ b(class)\b </string >
109
+ <string >(? < !^\.|[^.]\.|::)\ b(class)\b(?![?!]) </string >
110
110
<key >beginCaptures </key >
111
111
<dict >
112
112
<key >1 </key >
223
223
</dict >
224
224
<dict >
225
225
<key >begin </key >
226
- <string >\ b(module)\b </string >
226
+ <string >(? < !^\.|[^.]\.|::)\ b(module)\b(?![?!]) </string >
227
227
<key >beginCaptures </key >
228
228
<dict >
229
229
<key >1 </key >
Original file line number Diff line number Diff line change @@ -21,8 +21,23 @@ class Foo
21
21
@@module = "mymodule"
22
22
class_name = "class_name"
23
23
module_name = "module_name"
24
+ self . class . methods
25
+ self ::class ::methods
26
+
27
+ def module
28
+ nil
29
+ end
30
+
31
+ def class
32
+ nil
33
+ end
24
34
end
25
35
36
+ Foo . new . module
37
+ Foo . new ::module
38
+ Foo . new . class
39
+ Foo . new ::class
40
+
26
41
# -------------------------------------------
27
42
# Testarea for classes
28
43
# -------------------------------------------
You can’t perform that action at this time.
0 commit comments