Sha256: 0be6215ab606acf2d29d768903d9c23bb9c55e4a1c42e0c096cc474de061f10c

Contents?: true

Size: 651 Bytes

Versions: 26

Compression:

Stored size: 651 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/module/delegation'
require 'eac_ruby_utils/module_ancestors_variable/base'
require 'eac_ruby_utils/enumerables_methods'

module EacRubyUtils
  module ModuleAncestorsVariable
    class Hash < ::EacRubyUtils::ModuleAncestorsVariable::Base
      INITIAL_VALUE = {}.freeze

      def initialize(the_module, method_name)
        super(the_module, method_name, INITIAL_VALUE)
      end

      delegate(*::EacRubyUtils::EnumerablesMethods::HASH_READ_METHODS, to: :ancestors_variable)
      delegate(*::EacRubyUtils::EnumerablesMethods::HASH_WRITE_METHODS, to: :self_variable)
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
eac_ruby_utils-0.117.1 lib/eac_ruby_utils/module_ancestors_variable/hash.rb
eac_tools-0.69.0 sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/hash.rb
eac_tools-0.68.0 sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/hash.rb
eac_tools-0.67.1 sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/hash.rb
eac_ruby_utils-0.117.0 lib/eac_ruby_utils/module_ancestors_variable/hash.rb
eac_tools-0.67.0 sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/hash.rb