def set(*wanted_options)
      options_to_select = [*wanted_options].flatten
      options_to_deselect = option_names - options_to_select

      @options = options
      select(options_to_select, true)
      select(options_to_deselect, false)
      @options = nil
    end
def set(*wanted_options)
      options_to_select = [*wanted_options].flatten
      options_to_deselect = option_names - options_to_select

      @options = options
      select(options_to_select, true)
      select(options_to_deselect, false)
      @options = nil
    end
Selects the given option(s) and deselects all other ones. This can not be done with
 radio buttons, however, as they cannot be deselected.
 @param [String, Array<String>] wanted_options to be selected.
 @example Passing a single String
   group.set('Checkbox1')  #=> selects 'Checkbox1'
 @example Passing several options
   group.set('Checkbox1', 'Checkbox2') #=> selects 'Checkbox1' and 'Checkbox2'
 @example Passing several options as Array
   group.set(['Checkbox1', 'Radio1'])  #=> selects 'Checkbox1' and 'Radio1'