Module: Enumerable
- Included in:
- Zip::CentralDirectory, Zip::EntrySet, Zip::FileSystem::ZipFileNameMapper, Zip::FileSystem::ZipFsDirIterator, Zip::IOExtras::AbstractInputStream
- Defined in:
- lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb
Instance Method Summary collapse
Instance Method Details
#compare_enumerables(otherEnumerable) ⇒ Object
183 184 185 186 187 188 189 190 |
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/test_helper.rb', line 183 def compare_enumerables(otherEnumerable) otherAsArray = otherEnumerable.to_a each_with_index { |element, index| return false unless yield(element, otherAsArray[index]) } return self.size == otherAsArray.size end |