Q: What does the last expression evaluates to?
Answered
quizz 27/36
class A def self.print_class p "I am class A" end def print_instance p "I am an instance of A" end end A.singleton_class.instance_methods(false)
copy
Ruby 3.3.0
[:print_class]
[:print_class, :print_instance]
[]
[:print_instance]
privacy policy