Sha256: 062f14ef27b47179c7925082386e0931e1864413078d9f41b15e752874995f12
Contents?: true
Size: 1.36 KB
Versions: 5
Compression:
Stored size: 1.36 KB
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # A data-oriented editable table control. module Wx module GRID class Grid alias :set_table :assign_table alias :table= :assign_table wx_each_selected_block = instance_method :each_selected_block wx_redefine_method :each_selected_block do if block_given? wx_each_selected_block.bind(self).call else ::Enumerator.new { |y| wx_each_selected_block.bind(self).call { |sb| y << sb } } end end def get_selected_blocks each_selected_block.to_a end alias :selected_blocks :get_selected_blocks wx_each_selected_row_block = instance_method :each_selected_row_block wx_redefine_method :each_selected_row_block do if block_given? wx_each_selected_row_block.bind(self).call else ::Enumerator.new { |y| wx_each_selected_row_block.bind(self).call { |sb| y << sb } } end end wx_each_selected_col_block = instance_method :each_selected_col_block wx_redefine_method :each_selected_col_block do if block_given? wx_each_selected_col_block.bind(self).call else ::Enumerator.new { |y| wx_each_selected_col_block.bind(self).call { |sb| y << sb } } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-1.5.1 | lib/wx/grid/grid.rb |
wxruby3-1.5.0 | lib/wx/grid/grid.rb |
wxruby3-1.4.2 | lib/wx/grid/grid.rb |
wxruby3-1.4.1 | lib/wx/grid/grid.rb |
wxruby3-1.4.0 | lib/wx/grid/grid.rb |