Sha256: e885c1b4c3f67660b3e1ab4a7377d95f38ba744a95af9d833fe93ae467fe788b
Contents?: true
Size: 557 Bytes
Versions: 33
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal = true class Ree::PackagesStore attr_reader :ree_version def initialize(ree_version = Ree::VERSION) @ree_version = ree_version @store = {} end def set_ree_version(val) @ree_version = val; self end def packages @store.values end # @param [Symbol] name # @return [Ree::Package] def get(name) @store[name] end # @param [Ree::Package] package def add_package(package) existing = get(package.name) return existing if existing @store[package.name] = package end end
Version data entries
33 entries across 33 versions & 1 rubygems