Sha256: 655f33dd1513d8a67d8f724d900ce9820746aadbd2034be6f69b72785712b10a
Contents?: true
Size: 330 Bytes
Versions: 37
Compression:
Stored size: 330 Bytes
Contents
require "semantic/semantic" module Extension module Models NpmPackage = Struct.new(:name, :version, keyword_init: true) do include Comparable def <=>(other) return nil unless name == other.name Semantic::Version.new(version) <=> Semantic::Version.new(other.version) end end end end
Version data entries
37 entries across 37 versions & 1 rubygems