def flag_position(position)
      raise IOError, "There's a invalid or missing file" if @file.nil?

      files = @original_file.dup

      files.tap do |file|
        add_mark(file, position)
      end
    end
def flag_position(position)
      raise IOError, "There's a invalid or missing file" if @file.nil?

      files = @original_file.dup

      files.tap do |file|
        add_mark(file, position)
      end
    end
rubocop:enable Metrics/CyclomaticComplexity
 rubocop:enable Metrics/MethodLength
 rubocop:enable Metrics/PerceivedComplexity
 rubocop:enable Metrics/BlockNesting