
3 Sep
2009
3 Sep
'09
11:22
OK, we have attr_accessor :servers, which is apparently a hash. Still, WTF does the code mean?! Are you iterating over the keys only (what are the values for then?) and assigning the item to the same variable as the container?
+ xml.servers({:type => "array"}) do + servers.each do |@servers, val| + xml.tag!(:nameserver, servers) + end + end end end
-- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org