Sha256: 60edeb86daa66012fff24b9783c05d869dc81253c1237b3efbd1b5508530e843
Contents?: true
Size: 510 Bytes
Versions: 5
Compression:
Stored size: 510 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx module RTC class RichTextParagraph # Overload to provide Enumerator without block wx_each_line = instance_method :each_line wx_redefine_method :each_line do |&block| if block wx_each_line.bind(self).call(&block) else ::Enumerator.new { |y| wx_each_line.bind(self).call { |ln| y << ln } } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems