lib/mongo/client.rb
def validate_options!
      if options[:write] && options[:write_concern] && options[:write] != options[:write_concern]
        raise ArgumentError, "If :write and :write_concern are both given, they must be identical: #{options.inspect}"
      end
    end
# Validates all options after they are set on the client.
# This method is intended to catch combinations of options which are
# not allowed.
Validates all options after they are set on the client.
This method is intended to catch combinations of options which are
not allowed.
Validates all options after they are set on the client . This method is intended to catch combinations of options which are not allowed .
def validate_options!
      if options[:write] && options[:write_concern] && options[:write] != options[:write_concern]
        raise ArgumentError, "If :write and :write_concern are both given, they must be identical: #{options.inspect}"
      end
    end
def validate_options! if options [ :write ] && options [ :write_concern ] && options [ :write ] != options [ :write_concern ] raise ArgumentError , "If :write and :write_concern are both given, they must be identical: #{options.inspect}" end end
Validates all options after they are set on the client.
Validates all options after they are set on the client .