def installed_versions
      return enum_for(:installed_versions) unless block_given?

      find_executables.each do |executable_path|
        version = detect_version(executable_path)

        break(2) if yield(executable_path, version)
      end
    end
def installed_versions
      return enum_for(:installed_versions) unless block_given?

      find_executables.each do |executable_path|
        version = detect_version(executable_path)

        break(2) if yield(executable_path, version)
      end
    end
Get all the installed versions of the api-compatible executables.
 If a block is given, it yields once per found executable, lazily.
 @yieldparam executable_path [String]
 @yieldparam version [String]
 @yieldreturn [Boolean] - true if search should stop.
 @return [Hash<String,String>] executable_path, version