1

Вывести список методов объекта

require 'pp'
pp String.methods
["private_class_method", "inspect", "name", "tap",
"clone", "public_methods", "__send__", "object_id",
"method_defined?", "instance_variable_defined?",
...