创建一个类

你可以使用 class 关键字定义新类。

class MyClass
end

定义后,你可以使用 .new 方法创建新实例

somevar = MyClass.new
# => #<MyClass:0x007fe2b8aa4a18>