naive_bayes/resources/ruby/description.rb
# Update this description with a new description. Will fire the
# necessary events depending on what has changed from the old description
# to the new one.
#
# @example Update the description with the new config.
#   description.update!({ "ismaster" => false })
#
# @note This modifies the state of the description.
#
# @param [ Hash ] new_config The new configuration.
#
# @return [ Description ] The updated description.
#
# @since 3.0.0
Update this description with a new description. Will fire the
necessary events depending on what has changed from the old description
to the new one.
Update this description with a new description . Will fire the necessary events depending on what has changed from the old description to the new one .
def update!(new_config)
        find_new_servers(new_config)
        find_removed_servers(new_config)
        @config = new_config
        self
      end
def update! ( new_config ) find_new_servers ( new_config ) find_removed_servers ( new_config ) @config = new_config self end
Update this description with a new description.
Update this description with a new description .
The updated description.
The updated description .
 Description 
new_config
<not_specific>
<not_specific>
new_config The new configuration.
new_config The new configuration .
example
Update the description with the new config. description.update!({ "ismaster" => false })
Update the description with the new config . description . update! ( { " ismaster " = > false } )
note
This modifies the state of the description.
This modifies the state of the description .
since
None