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
[email protected]
SUSE
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]