Skip to content

Commit 67032b5

Browse files
committed
Ruby: add test for self.class call
1 parent 174ab25 commit 67032b5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module SelfDotClass
2+
module Mixin
3+
def foo
4+
self.class.bar # $ call=Member[Foo].Method[bar]
5+
end
6+
end
7+
class Subclass < Foo
8+
include Mixin
9+
end
10+
end

0 commit comments

Comments
 (0)