Class: ConvenientService::Utils::Array::ContainExactly Private
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Array::ContainExactly
- Defined in:
- lib/convenient_service/utils/array/contain_exactly.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #first_array ⇒ Object readonly private
- #second_array ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ Boolean private
- #initialize(first_array, second_array) ⇒ Boolean constructor private
Methods inherited from Support::Command
Constructor Details
#initialize(first_array, second_array) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 46 |
# File 'lib/convenient_service/utils/array/contain_exactly.rb', line 43 def initialize(first_array, second_array) @first_array = first_array @second_array = second_array end |
Instance Attribute Details
#first_array ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
30 31 32 |
# File 'lib/convenient_service/utils/array/contain_exactly.rb', line 30 def first_array @first_array end |
#second_array ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
36 37 38 |
# File 'lib/convenient_service/utils/array/contain_exactly.rb', line 36 def second_array @second_array end |
Instance Method Details
#call ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
51 52 53 |
# File 'lib/convenient_service/utils/array/contain_exactly.rb', line 51 def call first_array.tally == second_array.tally end |