Module: Array::Eqq
- Included in:
- Array
- Defined in:
- lib/array/eqq.rb,
lib/array/eqq/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Method Summary collapse
Instance Method Details
#===(other, &block) ⇒ Object
5 6 7 |
# File 'lib/array/eqq.rb', line 5 def === other, &block size == other.size && zip(other).all? { |a, b| a.=== b, &block } end |