摘要:
#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 阅读全文
摘要:
Ruby 错误提示:class/module name must be CONSTANT=beginbegintocommentthisisalsocomment=endputs"noLonggerComments";#rdocrules#=headers#thisisheadercontent#==subheaders#thisissubheadercontent#===subsubheaders#thisissubsubheadersclassanimal#thisisthecommentforthe'new'method!definitializety 阅读全文