Sha256: 4ffdcd2821c810a50c38fa0bf95f9f598b825677f339af790f125799a73e117e

Contents?: true

Size: 502 Bytes

Versions: 14

Compression:

Stored size: 502 Bytes

Contents

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

module Wx

  module STC

    class StyledTextCtrl

      # 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

14 entries across 14 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/stc/styled_text_ctrl.rb
wxruby3-1.3.0 lib/wx/stc/styled_text_ctrl.rb
wxruby3-1.2.1 lib/wx/stc/styled_text_ctrl.rb
wxruby3-1.2.0 lib/wx/stc/styled_text_ctrl.rb
wxruby3-1.1.2 lib/wx/stc/styled_text_ctrl.rb
wxruby3-1.1.1 lib/wx/stc/styled_text_ctrl.rb
wxruby3-1.1.0 lib/wx/stc/styled_text_ctrl.rb
wxruby3-1.0.1 lib/wx/stc/styled_text_ctrl.rb
wxruby3-0.9.8 lib/wx/stc/styled_text_ctrl.rb
wxruby3-0.9.7 lib/wx/stc/styled_text_ctrl.rb
wxruby3-0.9.5 lib/wx/stc/styled_text_ctrl.rb
wxruby3-0.9.4 lib/wx/stc/styled_text_ctrl.rb
wxruby3-0.9.3 lib/wx/stc/styled_text_ctrl.rb
wxruby3-0.9.2 lib/wx/stc/styled_text_ctrl.rb