module Mongo::Cluster::Topology::NoReplicaSetOptions
Private Instance Methods
validate_options(options, cluster)
click to toggle source
Calls superclass method
# File lib/mongo/cluster/topology/no_replica_set_options.rb, line 21 def validate_options(options, cluster) # These options can be set to nil for convenience, but not to # any value including an empty string. [:replica_set_name, :max_election_id, :max_set_version].each do |option| if options[option] raise ArgumentError, "Topology #{self.class.name} cannot have the :#{option} option set" end end super(options, cluster) end