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