methods
methodsメソッドで、そのオブジェクトのメソッド名のリストが得られます。
puts 1.methods.sort
実行結果です。
% & * ** (略) __id__ __send__ abs between? ceil chr class clone coerce (略) to_s to_sym truncate type untaint upto zero? | ~
methodsメソッドで、そのオブジェクトのメソッド名のリストが得られます。
puts 1.methods.sort
実行結果です。
% & * ** (略) __id__ __send__ abs between? ceil chr class clone coerce (略) to_s to_sym truncate type untaint upto zero? | ~