Sha256: bb09c59ed482b49b510ff16dfa2a3bbee51e1cb79267676e6c5716cbd2ede26b

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

module Makit
  VERSION = "0.0.5"

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