Sha256: 5adf5b75d0393a63997a2056bcfc929f9be31f5c564a80112b18a696255786af
Contents?: true
Size: 544 Bytes
Versions: 8
Compression:
Stored size: 544 Bytes
Contents
module VersionCake class VersionedResource attr_reader :uri, :supported_versions, :deprecated_versions, :obsolete_versions def initialize(uri, obsolete_versions, deprecated_versions, supported_versions) @uri, @supported_versions, @deprecated_versions, @obsolete_versions = uri, supported_versions, deprecated_versions, obsolete_versions end def available_versions (@supported_versions.to_a + @deprecated_versions.to_a).sort end def latest_version available_versions.last end end end
Version data entries
8 entries across 8 versions & 1 rubygems