Sha256: 19d20414f2b2ba742e028edaa2b4ba9e0e38846866096a92f628837d44ff6a9f
Contents?: true
Size: 290 Bytes
Versions: 1
Compression:
Stored size: 290 Bytes
Contents
# frozen_string_literal: true module Makit VERSION = "0.0.2" 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.2 | lib/makit/version.rb |