зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
f3727f5928
Коммит
88a13516ec
|
@ -1,3 +1,9 @@
|
|||
Thu Nov 17 13:52:00 2005 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/rss/rss.rb : removed needless argument 'prefix'.
|
||||
|
||||
* lib/rss/parser.rb: ditto.
|
||||
|
||||
Wed Nov 16 23:24:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* common.mk (static-ruby): overridable.
|
||||
|
|
|
@ -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)
|
||||
previous.funcall(:set_next_element, 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)
|
||||
def set_next_element(tag_name, next_element)
|
||||
klass = next_element.class
|
||||
prefix = ""
|
||||
prefix << "#{klass.required_prefix}_" if klass.required_prefix
|
||||
|
|
Загрузка…
Ссылка в новой задаче