modules, classes, object-oriented programming
Make a module inherit from another. This is a little bit trickier than it looks.
There is hidden code with assertions that is also being run to test out your code.
module ChildModule ___ end module ParentModule def parent_module_method 'This should get called' end end class TestClass include ChildModule end assert_equal TestClass.new.parent_module_method, 'This should get called'
Back to Problems