Mailinglist Archive: yast-devel (144 mails)

< Previous Next >
Re: [yast-devel] Questions about some YCP Equivalents in ruby
Dne 16.8.2013 12:31, Josef Reidinger napsal(a):
BTW2 for lslezak example I think it can be done better with constant so
it is clear what is default like

PART_DEFAULTS = {
"fsid" => 0,
"type" => :none
}

part = Hash.new { |h,k| PART_DEFAULTS[k] }

Yeah, thanks, this looks much better!


--

Ladislav Slez√°k
Appliance department / YaST Developer
Lihovarsk√° 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak@xxxxxxxx
SUSE
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >