add (Archive::Tar::Minitar::Command::CommandPattern)

         # File lib/archive/tar/minitar/command.rb, line 232
    232:       def add(command)
    233:         command = command.new if command.kind_of?(Class)
    234:
    235:         @commands ||= {}
    236:         if @commands.has_key?(command.name)
    237:           raise CommandAlreadyExists
    238:         else
    239:           @commands[command.name] = command
    240:         end
    241:
    242:         if command.respond_to?(:altname)
    243:           unless @commands.has_key?(command.altname)
    244:             @commands[command.altname] = command
    245:           end
    246:         end
    247:       end