Module: Collapsium::Support::HashMethods Private
- Included in:
- EnvironmentOverride, UberHash
- Defined in:
- lib/collapsium/support/hash_methods.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defines which read and write functions we expect Hash to have.
Constant Summary collapse
- KEYED_READ_METHODS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Read access methods with key parameter
%i[ [] default fetch has_key? include? key? ].freeze
- READ_METHODS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
All read access methods
KEYED_READ_METHODS + %i[ dup ].freeze
- KEYED_WRITE_METHODS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Write access methods with key parameter
%i[ []= delete store ].freeze
- WRITE_METHODS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
All write access methods
KEYED_WRITE_METHODS + %i[ merge merge! ].freeze