Can’t you remove `Object` here? The implicit receiver (i.e. the `Readline` class) should inherit `const_defined?` from `Object`.