📜  类 ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:48.282000             🧑  作者: Mango

代码示例1
Classes in Ruby are first-class objects—each is an instance of class Class . When a new class is created, an object of type Class is initialized and assigned to a global constant ( Name in this case). Classes, modules, and objects are interrelated.