[ruby-core:124587] [Ruby Bug#8743] Inconsistent behaviour calling public_methods on class (Plus documentation slightly ambiguous)