lib/openwfe/participants/participant_map.rb
#
# Deletes the first participant matching the given name.
#
# If 'participant_name' is an integer, will remove the participant
# at that position in the participant list.
#
Deletes the first participant matching the given name.
If 'participant_name' is an integer, will remove the participant
at that position in the participant list.
Deletes the first participant matching the given name . If ' participant_name ' is an integer will remove the participant at that position in the participant list .
def unregister_participant (participant_name)
      return (@participants.delete_at(participant_name) != nil) \
        if participant_name.is_a?(Integer)
      participant_name = participant_name.to_s
      par = @participants.find do |tuple|
        tuple[0].original_string == participant_name
      end
      @participants.delete(par) if par
      (par != nil)
    end
def unregister_participant ( participant_name ) return ( @participants . delete_at ( participant_name ) != nil ) if participant_name . is_a? ( Integer ) participant_name = participant_name . to_s par = @participants . find do | tuple | tuple [ 0 ] . original_string == participant_name end @participants . delete ( par ) if par ( par != nil ) end
Deletes the first participant matching the given name.
Deletes the first participant matching the given name .
participant_name
<not_specific>