Sha256: 79ec434c78707c5209e406eccd172e95dc0046277e73cb4cb563d8d4743e789f
Contents?: true
Size: 1.35 KB
Versions: 14
Compression:
Stored size: 1.35 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 define_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 define_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 define_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
14 entries across 14 versions & 1 rubygems