Sha256: 1d01c3b8f857f30689ce3fc88773dc64f03f32fb768b8d89dd6da0523a16182f
Contents?: true
Size: 659 Bytes
Versions: 4
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'eac_ruby_utils/gems_registry' module Avm module Registry require_sub __FILE__ enable_listable lists.add_symbol :category, :instance_stereotypes, :scms, :source_stereotypes class << self enable_simple_cache # @return [Array<Avm::Registry::Base>] def registries lists.category.values.map { |c| send(c) } end private ::Avm::Registry.lists.category.each_value do |category| define_method "#{category}_uncached" do ::Avm::Registry::Base.new(category.to_s.camelize) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
avm-0.6.1 | lib/avm/registry.rb |
avm-tools-0.109.1 | vendor/avm/lib/avm/registry.rb |
avm-0.6.0 | lib/avm/registry.rb |
avm-tools-0.109.0 | vendor/avm/lib/avm/registry.rb |