Method: Tk::TkTable#set_col
- Defined in:
- lib/tkextlib/tktable/tktable.rb
#set_col(*pairs) ⇒ Object
idx, val, idx, val, …
732 733 734 735 736 737 738 739 740 |
# File 'lib/tkextlib/tktable/tktable.rb', line 732 def set_col(*pairs) # idx, val, idx, val, ... args = [] 0.step(pairs.size-1, 2){|i| args << tagid(pairs[i]) args << pairs[i+1] } tk_send('set', 'col', *args) self end |