class Grape::Validations::Validators::Base

def options_key?(key, options = nil)

def options_key?(key, options = nil)
  options = instance_variable_get(:@option) if options.nil?
  options.respond_to?(:key?) && options.key?(key) && !options[key].nil?
end