classメソッド
レシーバ
任意のオブジェクト
戻り値
レシーバが所属しているClassクラスのオブジェクト
irb(main):001:0> String.class
=> Class
superclassメソッド
レシーバ
Classクラスのオブジェクト
戻り値
レシーバが所属しているクラスの親クラスのClassクラスのオブジェクト
irb(main):002:0> String.superclass
=> Object
ancestorsメソッド
レシーバ
Classクラスのオブジェクト
戻り値
レシーバのクラスの継承しているクラス及びモジュールが全て入った配列
irb(main):003:0> String.ancestors
=> [String, Comparable, Object, Kernel, BasicObject]