Add implementation and basic specs for Module#public_method_defined?