private method `gsub' called for 0:Fixnum
<br />gsub这个方法还不支持数字为属性值的标签转换……打开rexml文件夹下面的text.rb,找到代码,大概在289行<br /> Ruby代码 def Text::normalize( input, doctype=nil, entity_filter=nil ) copy = input # Doing it like this rather than in a loop improves the speed #copy = copy.gsub(
原创
2010-12-17 11:40:00 ·
562 阅读 ·
0 评论