Just noticed something interesting (well not that interesting). Ternary operators in Ruby can be re-written using Boolean operators e.g.
method = object.respond_to?(:foo) ? :foo : :bar
method = object.respond_to?(:foo) && :foo || :bar
I don’t know if there is any performance gain here, anyone care to investigate?