I’m trying to understand #methods and #public_instance_methods as I
learn about introspection in Ruby.
If I do String.methods in irb, I get a lot fewer listed than if I try
String.public_instance_methods. I would have guessed that
String.public_instance_methods would be a subset of String.methods.
Also, ri String.public_instance_methods has no information, and
public_instance_methods is not listed on RDoc Documentation. I only
found it by doing a String.methods.