def remove_port(port)
      case port.type
      when :input
        input_ports.delete(port.name)
      when :output
        output_ports.delete(port.name)
      end
    end
def remove_port(port)
      case port.type
      when :input
        input_ports.delete(port.name)
      when :output
        output_ports.delete(port.name)
      end
    end
Removes given port from <tt>self</tt>