From: noreply@... Date: 2004-11-02T13:17:48+09:00 Subject: [ ruby-Bugs-1013 ] RSS: Can't make children of RSS::Rss Bugs item #1013, was opened at 2004-11-01 23:17 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1013&group_id=426 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Francis Hwang (francis) Assigned to: Nobody (None) Summary: RSS: Can't make children of RSS::Rss Initial Comment: I have a class, BlendedFeed, that is a child of RSS::Rss. This worked fine in 1.8, but now in 1.9 it breaks #to_s: ArgumentError: negative argument /usr/local/lib/ruby/1.9/rss/rss.rb:630:in `*' /usr/local/lib/ruby/1.9/rss/rss.rb:630:in `calc_indent' /usr/local/lib/ruby/1.9/rss/0.9.rb:54:in `to_s' ../test/ts_feedblender.rb:47:in `test_to_s' Looks like the culprit is this line in Element.inherited: @indent_size = name.split(/::/).size - 2 which basically assumes you'll never inherit from RSS::Rss, or that if you do you'll jump through hoops to have your class name fool this line. Can this be fixed? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1013&group_id=426