⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (359 Bytes)
Bug #17509
ยป test.rb
Example script to reproduce the problem -
benediktdeicke (Benedikt Deicke)
, 01/04/2021 02:48 PM
module
SomeModule
def
a_method
defined?
(
super
)
?
super
:
:no_super_method
end
end
module
RespondModule
def
respond_to?
(
*
)
super
end
end
class
PlainClass
include
SomeModule
end
class
ModuleClass
include
RespondModule
include
SomeModule
end
puts
"PlainClass:
#{
PlainClass
.
new
.
a_method
}
"
puts
"ModuleClass:
#{
ModuleClass
.
new
.
a_method
}
"
(1-1/1)
Loading...