File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
ruby/ql/test/library-tests/modules Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def self.singleton_m
28
28
29
29
instance_m # NoMethodError
30
30
self . instance_m # NoMethodError
31
-
31
+
32
32
singleton_m
33
33
self . singleton_m
34
34
end
@@ -44,18 +44,18 @@ class C
44
44
include M
45
45
instance_m # NoMethodError
46
46
self . instance_m # NoMethodError
47
-
47
+
48
48
singleton_m # NoMethodError
49
49
self . singleton_m # NoMethodError
50
50
51
51
def baz
52
- instance_m
53
- self . instance_m
54
-
52
+ instance_m
53
+ self . instance_m
54
+
55
55
singleton_m # NoMethodError
56
56
self . singleton_m # NoMethodError
57
57
end
58
- end
58
+ end
59
59
60
60
c = C . new
61
61
c . baz
@@ -192,16 +192,16 @@ def self.singleton_a
192
192
puts "singleton_a"
193
193
self . singleton_b
194
194
end
195
-
195
+
196
196
def self . singleton_b
197
197
puts "singleton_b"
198
198
self . singleton_c
199
199
end
200
-
200
+
201
201
def self . singleton_c
202
202
puts "singleton_c"
203
203
end
204
-
204
+
205
205
def self . singleton_d
206
206
puts "singleton_d"
207
207
self . singleton_a
@@ -224,7 +224,7 @@ def call_singleton_g
224
224
self . singleton_g
225
225
end
226
226
end
227
-
227
+
228
228
Singletons . singleton_a
229
229
Singletons . singleton_f
230
230
@@ -423,7 +423,7 @@ def m1
423
423
424
424
def m2
425
425
puts "ConditionalInstanceMethods#m2"
426
-
426
+
427
427
def m3
428
428
puts "ConditionalInstanceMethods#m3"
429
429
You can’t perform that action at this time.
0 commit comments