新手问题 单件方法在工程上常用么?

msl12 · October 15, 2016 · Last by msl12 replied at October 16, 2016 · 1897 hits

最近在研究 ruby 的元编程,感觉 ruby 的单件方法和单件类这特性挺独特的,除了类方法,想问下其他单件方法在工程上常用么? 😀

别误导,单件经常用。

#5 楼 @msl12 他说的可能是 单例模式

Singleton 单件,单例模式。经常用到。

#7 楼 @cloudqq 楼主说的应该不是 单例模式,是 singleton method 和 singleton class

msl12 closed this topic. 17 Oct 09:10
You need to Sign in before reply, if you don't have an account, please Sign up first.