Class: ConvenientService::Utils::Array::ContainExactly
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Array::ContainExactly
- Defined in:
- lib/convenient_service/utils/array/contain_exactly.rb
Instance Attribute Summary collapse
-
#first_array ⇒ Object
readonly
Returns the value of attribute first_array.
-
#second_array ⇒ Object
readonly
Returns the value of attribute second_array.
Instance Method Summary collapse
Methods inherited from Support::Command
Constructor Details
#initialize(first_array, second_array) ⇒ Boolean
38 39 40 41 |
# File 'lib/convenient_service/utils/array/contain_exactly.rb', line 38 def initialize(first_array, second_array) @first_array = first_array @second_array = second_array end |
Instance Attribute Details
#first_array ⇒ Object (readonly)
Returns the value of attribute first_array.
25 26 27 |
# File 'lib/convenient_service/utils/array/contain_exactly.rb', line 25 def first_array @first_array end |
#second_array ⇒ Object (readonly)
Returns the value of attribute second_array.
31 32 33 |
# File 'lib/convenient_service/utils/array/contain_exactly.rb', line 31 def second_array @second_array end |
Instance Method Details
#call ⇒ Boolean
46 47 48 |
# File 'lib/convenient_service/utils/array/contain_exactly.rb', line 46 def call first_array.tally == second_array.tally end |