Re: A more elegant way to do this?


#1
     }
  end #Unless
}

end #unless

use (value||[]), ie:

(conf['hosts'][hostname]['groups']||[]).each { |group|
      (conf['crontables'][group]||[]).each { | tab_item|
        tab_entries << tab_item
      }
 }

#2

Thanks for all your replies. I knew there was a better way, I kept
reading and thinking that I am still not thinking in ruby.