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

Version Path
wxruby3-1.3.1 rakelib/lib/ext/enum_chain.rb
wxruby3-1.3.0 rakelib/lib/ext/enum_chain.rb
wxruby3-1.2.1 rakelib/lib/ext/enum_chain.rb
wxruby3-1.2.0 rakelib/lib/ext/enum_chain.rb
wxruby3-1.1.2 rakelib/lib/ext/enum_chain.rb
wxruby3-1.1.1 rakelib/lib/ext/enum_chain.rb
wxruby3-1.1.0 rakelib/lib/ext/enum_chain.rb
wxruby3-1.0.1 rakelib/lib/ext/enum_chain.rb
wxruby3-0.9.8 rakelib/lib/ext/enum_chain.rb
wxruby3-0.9.7 rakelib/lib/ext/enum_chain.rb
wxruby3-0.9.5 rakelib/lib/ext/enum_chain.rb
wxruby3-0.9.4 rakelib/lib/ext/enum_chain.rb
wxruby3-0.9.3 rakelib/lib/ext/enum_chain.rb
wxruby3-0.9.2 rakelib/lib/ext/enum_chain.rb
wxruby3-0.9.1 rakelib/lib/ext/enum_chain.rb
wxruby3-0.9.0 rakelib/lib/ext/enum_chain.rb