![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ruby
qq_16480695
这个作者很懒,什么都没留下…
展开
-
Rails Rake指南
点击打开链接转载 2014-06-13 10:39:12 · 398 阅读 · 0 评论 -
extend
二、在类定义中引入module后,module中的方法成为类的类方法。 在类定义中用extend引入module。 例如: Ruby代码 module Base def test p "This is a instance method!" end end class Car extend Base end Car.test => "This i原创 2014-06-12 21:57:21 · 406 阅读 · 0 评论 -
错误
http://www.cnblogs.com/keen-allan/archive/2012/04/27/2473390.html转载 2014-06-16 11:42:11 · 332 阅读 · 0 评论