Module: Collapsium::Support::ArrayMethods Private
- Included in:
- EnvironmentOverride
- Defined in:
- lib/collapsium/support/array_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 Array to have.
Constant Summary collapse
- INDEXED_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 index parameter
%i[ [] at fetch include? ].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
INDEXED_READ_METHODS + %i[ dup first last take drop ].freeze
- INDEXED_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 index parameter
%i[ []= insert compact ].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
INDEXED_WRITE_METHODS + %i[ unshift pop shift ].freeze