end class Parent def method1 p "parent method!" end end class Test < Parent include NiceFeature def method1 super end end test = Test.new test.method1 # => "module method!"
super end end test = Test.new test.method1 # => test.rb:3:in `method1': super: no superclass method `method1' for #<Test:0x007fb699008370> (NoMethodError) # => Did you mean? method # => methods # => from test.rb:8:in `<main>'