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.

API:

  • private

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

API:

  • private

[
  :[], :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

API:

  • private

INDEXED_READ_METHODS + [
  :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

API:

  • private

[
  :[]=, :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

API:

  • private

INDEXED_WRITE_METHODS + [
  :unshift, :pop, :shift,
].freeze