class BinData::ChoiceArgProcessor

def ensure_valid_keys(choices)

def ensure_valid_keys(choices)
  if choices.has_key?(nil)
    raise ArgumentError, ":choices hash may not have nil key"
  end
  if choices.keys.detect { |key| key.is_a?(Symbol) and key != :default }
    raise ArgumentError, ":choices hash may not have symbols for keys"
  end
end