summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-17 04:53:59 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-17 04:53:59 +0000
commit88a13516ece41a15f992b9b195bf60e89447d26d ()
tree7ebcaf9a665695cab7ef40857c9e5bef4b21d9cd /lib
parentf3727f59288e152d7b95c57d8b5390cf1cfeaf9d (diff)
* lib/rss/rss.rb : removed needless argument 'prefix'.
* lib/rss/parser.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/rss/parser.rb4
-rw-r--r--lib/rss/rss.rb2
2 files changed, 2 insertions, 4 deletions
@@ -407,9 +407,7 @@ module RSS
previous = @last_element
next_element = klass.send(:new, *args)
next_element.do_validate = @do_validate
- prefix = ""
- prefix << "#{klass.required_prefix}_" if klass.required_prefix
- previous.funcall(:set_next_element, prefix, tag_name, next_element)
@last_element = next_element
@proc_stack.push Proc.new { |text, tags|
p(@last_element.class) if DEBUG
@@ -665,7 +665,7 @@ EOC
end
end
- def set_next_element(prefix, tag_name, next_element)
klass = next_element.class
prefix = ""
prefix << "#{klass.required_prefix}_" if klass.required_prefix