Sha256: 0ef9e4957c859da75c4e9aba7a5d56f12decec4eeff8217807d2ca10a6886f24

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module Makit
  VERSION = "0.0.35"

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