Sha256: 47007ad834c469af38763e53103fe2049a72889b2388993da8b957b70697cb65
Contents?: true
Size: 410 Bytes
Versions: 20
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module Spandx module Core module Registerable include Enumerable def all @all ||= registry.map(&:new) end def each(&block) all.each do |x| block.call(x) end end def inherited(subclass) registry.push(subclass) end def registry @registry ||= [] end end end end
Version data entries
20 entries across 20 versions & 1 rubygems