class MyClass
end
obj1 = MyClass.new
obj2 = MyClass.new
puts "1:==============================="
puts "obj1.class:#{obj1.class}"
#puts "obj1.superclass:#{obj1.superclass}"
puts "MyClass.class:#{MyClass.class}"
puts "MyClass.superclass:#{MyClass.superclass}"
puts "MyClass.class.superclass:#{MyClass.class.superclass}"
puts "MyClass.superclass.class:#{MyClass.superclass.class}"
puts "MyClass.class.superclass.class:#{MyClass.class.superclass.class}"
puts "Object.class:#{Object.class}"
puts "Object.superclass:#{Object.superclass}"
puts "Class.class:#{Class.class}"
puts "Class.superclass:#{Class.superclass}"
puts "Module.class:#{Module.class}"
puts "Module.superclass:#{Module.superclass}"
puts
puts
puts
puts "2:============================="
puts "Class:#{Class}"
puts "Class.superclass:#{Class.superclass}"
puts "Class.superclass.superclass:#{Class.superclass.superclass}"
puts "Class.superclass.superclass.superclass:#{Class.superclass.superclass.superclass}"
puts "Class.superclass.superclass.superclass.superclass:#{Class.superclass.superclass.superclass.superclass}"
puts
puts
puts
puts "3:============================="
puts "Class:#{Class}"
puts "Class.class:#{Class.class}"
puts "Class.class.class:#{Class.class.class}"
puts "Class.class.class.class:#{Class.class.class.class}"
puts "Class.class.class.class.class:#{Class.class.class.class.class}"
puts
puts
puts
puts "4:============================="
MyClass2 = Class.new
obj3 = MyClass2.new
puts "obj3.class:#{obj3.class}"
puts
puts
puts
puts "5:============================="
puts "obj1.object_id:#{obj1.object_id}"
puts "obj1.class.object_id:#{obj1.class.object_id}"
puts "MyClass.class.object_id:#{MyClass.class.object_id}"
puts "MyClass.superclass.object_id:#{MyClass.superclass.object_id}"
puts "MyClass.class.superclass.object_id:#{MyClass.class.superclass.object_id}"