- 博客(3)
- 收藏
- 关注
Ruby 在 Notepad++ 上飞翔
1.notepad++ 简单介绍 notepad++可能大家都不陌生吧,它是一个很强大的编辑器,它的特性是,开放源代码, 支持多语言的,但是它目前只能运行在Windows平台下(缺点,都4.6的版本,还没看到能在其他os上的版本)。大家用过ruby下自带的SciTE吧,它使用的是 Scintilla edit component ,其实官方网站上说 SciTE本来只是作为Scintilla e...
2007-12-26 13:22:47 274
类中的成员变量可以这样声明, 但访问不能用@
大家先看下面代码:[code]class Person < Struct.new(:age) def say_age puts "say age: #{age}" if age != nil end def hello_age puts "hello age: #{age}" if age!=nil endendp = Person.new(3...
2007-12-21 17:33:03 226
migrate 中 create_table 的初步探索
搞了几天rails了,太magic了。所以搞不清楚,只知道调用。今天深入去了解了下 create_table 大家给指点指点先请看流程:再看 SchemaStatement 类的create_table()代码ruby 代码 # ====== Do not add a primary key column # create_table(:categori...
2007-12-21 11:17:44 293
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人