BlogHub
收录
作者
关于
Rails 中的 delegate 用法
Nic Lin
at
5 年前
Delegate 其實就是可以讓這個 class 用另一個 class 的 method,來實現到更語意化的寫法。 假設實做徽章系統,每個使用者(User)可以有多個徽章(Badge)……