What I'm currently doing is
"Hello" if options && options[:greet]
What I would like to do is cut that line down. If options
is nil, options[:greet]
obviously will be too. Does Ruby/Rails provide a method that offers this "hash checking" ability? Or perhaps there's a way of writing this more succinctly?