class Foo def inspect "" end def foo "the foo method" end end class Bar < Foo def inspect "" end end class Bar def baz end end Bar.inspect()