Sha256: ab10e6815f8acdf2ebee3d6ff4c10c77ac8959201f178bc586c4b27a8b6a673f

Contents?: true

Size: 525 Bytes

Versions: 5

Compression:

Stored size: 525 Bytes

Contents

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

module Wx

  module RTC

    class RichTextCtrl

      # Overload to provide Enumerator without block
      wx_each_line = instance_method :each_line
      define_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

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