File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1023,17 +1023,17 @@ class A
10231023
10241024 def test_module_function
10251025 util_parser <<~RUBY
1026- class A
1026+ module A
10271027 def m1; end
10281028 def m2; end
10291029 def m3; end
10301030 module_function :m1, :m3
10311031 module_function def m4; end
10321032 end
10331033 RUBY
1034- klass = @store . find_class_named 'A'
1035- instance_methods = klass . method_list . reject ( &:singleton )
1036- singleton_methods = klass . method_list . select ( &:singleton )
1034+ mod = @store . find_module_named 'A'
1035+ instance_methods = mod . method_list . reject ( &:singleton )
1036+ singleton_methods = mod . method_list . select ( &:singleton )
10371037 if accept_legacy_bug?
10381038 instance_methods . last . visibility = :private
10391039 singleton_methods << singleton_methods . last . dup
You can’t perform that action at this time.
0 commit comments