Sha256: 33a33fb1ef1081e629eb178984806f53e6a941fadb968ff63eb6045be7dd1ec8
Contents?: true
Size: 462 Bytes
Versions: 16
Compression:
Stored size: 462 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 extensions for Enumerator::Chain ### unless ::Enumerator.const_defined?(:Chain) class ::Enumerator # Simple implementation of Enumerator::Chain for Ruby versions < 2.6 # or JRuby < 9.3 class Chain < ::Enumerator def initialize(*enums) super() { |y| enums.each { |enum| enum.each { |o| y<< o } } } end end end end
Version data entries
16 entries across 16 versions & 1 rubygems