Sha256: f454bdd7f170ec98ce5e2041af96a24f14363b4a733760fb498df78077ec964b

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module Makit
  VERSION = "0.0.34"

  class Version
    # given an array of version strings, return the highest version
    def self.get_highest_version(versions)
      versions.sort { |a, b| Gem::Version.new(a) <=> Gem::Version.new(b) }.last
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
makit-0.0.34 lib/makit/version.rb