Q: What in __CODE__ to return the desired result
Answered
quizz 33/36
module A def self.greet "hello" end end class B __CODE__ end B.greet # => "hello"
copy
Ruby 3.3.0
prepend A
include A
extend A
define_singleton_method(:greet){ A.greet }
privacy policy