Welcome to Rainy's blog!

Ruby关键字

上一篇 / 下一篇  2008-02-03 14:19:48 / 个人分类:Ruby

 

模块定义

module

类定义

class

方法定义

def,undef

检查类型

defined?

条件语句

if,then,else,elsif,case,when,unless

循环语句

for,in,while,until,next,break,do,redo,retry,yield

逻辑判断

not,and,or

逻辑值和空值

true,false,nil

异常处理

rescue,ensure

对象引用

super,self

块的起始

begin/end

嵌入模块

BEGIN,END

文件相关

__FILE__,__LINE__

方法返回

return

别名

alias


TAG: Ruby

 

评分:0

我来说两句

我的栏目

日历

« 2024-04-24  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 23569
  • 日志数: 33
  • 图片数: 5
  • 书签数: 2
  • 建立时间: 2006-12-05
  • 更新时间: 2008-03-22

RSS订阅

Open Toolbar