Sha256: 78359d1528e4afad707730b3a174cc83a49584b752475ca352e7e0852f9a8534
Contents?: true
Size: 487 Bytes
Versions: 7
Compression:
Stored size: 487 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
7 entries across 7 versions & 1 rubygems