Robust options validation for Ruby methods.