Mailinglist Archive: yast-devel (163 mails)

< Previous Next >
Re: [yast-devel] Re: [yast-commit] <rest-service> network : dns model shows xml list
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Thu, 3 Sep 2009 13:22:53 +0200
  • Message-id: <20090903112253.GA4760@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
References