Sha256: 71f9c55977ecaec758b8f7b86107954c4091b4376f7c8b8b572fe790ee41529b
Contents?: true
Size: 302 Bytes
Versions: 1
Compression:
Stored size: 302 Bytes
Contents
# frozen_string_literal: true module Makit VERSION = "0.0.9" 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.9 | lib/makit/version.rb |