摘要:
#Class describ ------rdoc rules#= headers#this is header content#== sub header# this is sub header content#=== sub sub header# this is sub sub headerclass Animal attr_accessor :name #-------------① #this is the comment for the 'new' method ! def initialize type name = type #-------------② en 阅读全文
posted @ 2011-07-24 13:26
fandyst
阅读(1383)
评论(0)
推荐(0)
摘要:
Ruby 错误提示:class/module name must be CONSTANT=beginbegintocommentthisisalsocomment=endputs"noLonggerComments";#rdocrules#=headers#thisisheadercontent#==subheaders#thisissubheadercontent#===subsubheaders#thisissubsubheadersclassanimal#thisisthecommentforthe'new'method!definitializety 阅读全文
posted @ 2011-07-24 12:42
fandyst
阅读(1900)
评论(0)
推荐(0)

浙公网安备 33010602011771号