Sha256: bf2af19332031f4cfb67607006c192219d41f7f6ad45e60c35e72e3e1db17a38

Contents?: true

Size: 525 Bytes

Versions: 7

Compression:

Stored size: 525 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# 
# Some parts are
# Copyright 2004-2007, wxRuby development team
# released under the MIT-like wxRuby2 license

class Wx::VListBox

  wx_each_selected = instance_method :each_selected
  define_method :each_selected do |&block|
    if block
      wx_each_selected.bind(self).call(&block)
    else
      ::Enumerator.new { |y| wx_each_selected.bind(self).call { |sel| y << sel } }
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wxruby3-0.9.7-x64-mingw-ucrt lib/wx/core/v_list_box.rb
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/core/v_list_box.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/core/v_list_box.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/core/v_list_box.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/core/v_list_box.rb
wxruby3-0.9.1-x64-mingw-ucrt lib/wx/core/v_list_box.rb
wxruby3-0.9.0-x64-mingw-ucrt lib/wx/core/v_list_box.rb