Sha256: 014721cb38f19a54e70c6bfb93e8ae216c0a634e8ea9b4c0f63dc2ff8d0e7645

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

module Wx

  module RTC

    class RichTextCompositeObject

      # Overload to provide Enumerator without block
      wx_each_child = instance_method :each_child
      define_method :each_child do |&block|
        if block
          wx_each_child.bind(self).call(&block)
        else
          ::Enumerator.new { |y| wx_each_child.bind(self).call { |rto| y << rto } }
        end
      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/rtc/rich_text_composite_object.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/rtc/rich_text_composite_object.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/rtc/rich_text_composite_object.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/rtc/rich_text_composite_object.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/rtc/rich_text_composite_object.rb