From: "Kurt V. Hindenburg" Date: 2002-12-29T15:53:11+09:00 Subject: Hash question I'm using FXRuby and YAML, but this question deals with using a hash : Is there a better/easier way to do this? self.backColor = @options["GUI"].has_key?("backColor") ? @options["GUI"]["backColor"] : FXColor::Red Basically, if backColor is a key then use that key's value else use the default. I'm going to have a lot of these...I wonder if there is a better way to handle this... -- Kurt --- There is no good nor evil; there is only power.