首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

Ruby自学札记:类型,对象

2012-12-28 
Ruby自学笔记:类型,对象一. 注释单行注释# This entire line is a commentx #This is a string# And t

Ruby自学笔记:类型,对象
一. 注释

单行注释

# This entire line is a commentx = "#This is a string"               # And this is a commenty = /#This is a regular expression/   # Here's another comment


多行注释

=begin Someone needs to fix the broken code below!    <emphasis>Any code here is commented out</emphasis>=end


文档注释

# Rdoc comments use a simple markup grammar like those used in wikis. # Separate paragraphs with a blank line.# # = Headings# # Headings begin with an equals sign# # == Sub-Headings# The line above produces a subheading.# === Sub-Sub-Heading# And so on.


阅读全文

热点排行