Sha256: 0b40bc63688e44e1740ce2e4ef6bc684f3d4b6dba78e37a7fbab2e30197e7ceb
Contents?: true
Size: 686 Bytes
Versions: 205
Compression:
Stored size: 686 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module Avm module ApplicationStereotypes class Base enable_listable lists.add_symbol :resource, :instance, :source, :source_generator common_constructor :namespace_module, :resources do self.resources = self.class.lists.resource.hash_keys_validate!(resources) end # @return [String] def name namespace_module.name.demodulize end # @return [String] def to_s name end lists.resource.each_value do |resource| define_method "#{resource}_class" do resources[resource] end end end end end
Version data entries
205 entries across 205 versions & 2 rubygems