Sha256: 7bdd209ebd5eb60558e447e9c7a75a504a6e0c8d7d26ebf76a727a621c026bdf
Contents?: true
Size: 505 Bytes
Versions: 14
Compression:
Stored size: 505 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 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