- 博客(3)
- 收藏
- 关注
转载 linux shell编程语句if、case
shell学习笔记--if,caseshell的控制流结构主要有if语句、for语句、case语句、while语句、until语句这五种,在shell中这些语句的用法有点类似C语言,很容易学会,但也很容易忘记,只有经常实用它们才不会很快忘记,像我之前看的时候很快就看完了,但是很久没用,过一阵子又把它忘记了,现在又重看了一遍才记起来,好了,下面将详细介绍这几种语句的用法:1、if then
2015-01-08 16:32:53 476
转载 Ruby中访问控制符public,private,protected区别总结
重点关注private与protectedpublic默认即为public,全局都可以访问,这个不解释privateC++, “private” 意为 “private to this class”, 但是Ruby中意为 “private to this instance”.意思是:C++中,对于类A,只要能访问类A,就能访问A的对象的private方法。
2014-06-23 22:37:13 389
原创 rails或者rails的engine中model模块化以及constantize使用
rails engine 命名为dionemodels目录结构如下:models/yancheng1/yancheng2/yancheng.rbyancheng.rb类文件内容如下:model Dioneclass Yancheng1::Yancheng2::Yanchengdef yan1......enddef yan2......endendend字
2013-12-19 21:38:28 843
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人