Sha256: 3b28a8b2904f8bc9b83b6bd0732500282ae6b70d1762e3d3b57702aba3f39e56

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

module Makit
  VERSION = "0.0.25"

  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.25 lib/makit/version.rb