* lib/rexml/element.rb (REXML::Elements#each): yield in each
should be called with one parameter. [ruby-dev:32708] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
105e00bdd7
commit
8f5b0a4cd4
@ -1,3 +1,8 @@
|
|||||||
|
Tue Dec 25 02:55:26 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
|
* lib/rexml/element.rb (REXML::Elements#each): yield in each
|
||||||
|
should be called with one parameter. [ruby-dev:32708]
|
||||||
|
|
||||||
Tue Dec 25 02:15:39 2007 Koichi Sasada <ko1@atdot.net>
|
Tue Dec 25 02:15:39 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* compile.c (iseq_compile_each): add a "pop" insn after break
|
* compile.c (iseq_compile_each): add a "pop" insn after break
|
||||||
|
@ -1013,7 +1013,7 @@ module REXML
|
|||||||
# doc.root.attributes.each {|name, value| p name+" => "+value }
|
# doc.root.attributes.each {|name, value| p name+" => "+value }
|
||||||
def each
|
def each
|
||||||
each_attribute do |attr|
|
each_attribute do |attr|
|
||||||
yield attr.expanded_name, attr.value
|
yield [attr.expanded_name, attr.value]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user