Sha256: 27d480fcf1fd9f62cf79770692a5230d24efcaaaf6a6d8343aeb449c20ee0dbe

Contents?: true

Size: 505 Bytes

Versions: 16

Compression:

Stored size: 505 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

16 entries across 16 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/core/v_list_box.rb
wxruby3-1.3.0 lib/wx/core/v_list_box.rb
wxruby3-1.2.1 lib/wx/core/v_list_box.rb
wxruby3-1.2.0 lib/wx/core/v_list_box.rb
wxruby3-1.1.2 lib/wx/core/v_list_box.rb
wxruby3-1.1.1 lib/wx/core/v_list_box.rb
wxruby3-1.1.0 lib/wx/core/v_list_box.rb
wxruby3-1.0.1 lib/wx/core/v_list_box.rb
wxruby3-0.9.8 lib/wx/core/v_list_box.rb
wxruby3-0.9.7 lib/wx/core/v_list_box.rb
wxruby3-0.9.5 lib/wx/core/v_list_box.rb
wxruby3-0.9.4 lib/wx/core/v_list_box.rb
wxruby3-0.9.3 lib/wx/core/v_list_box.rb
wxruby3-0.9.2 lib/wx/core/v_list_box.rb
wxruby3-0.9.1 lib/wx/core/v_list_box.rb
wxruby3-0.9.0 lib/wx/core/v_list_box.rb