Ruby类中的single less是什么

w46czmvw  于 12个月前  发布在  Ruby
关注(0)|答案(1)|浏览(78)

范例:

class YourName < Library::Method
  # code in here
end

我经常在露比身上看到但我不知道这是什么意思。

8e2ybdfx

8e2ybdfx1#

继承操作符(<
它的意思是“YourName继承自Library::Method”

相关问题