Method: Tk::TkTable#delete_rows
- Defined in:
- lib/tkextlib/tktable/tktable.rb
#delete_rows(*args) ⇒ Object
?switches_array?, index, ?count?
575 576 577 578 579 580 581 582 583 584 585 586 |
# File 'lib/tkextlib/tktable/tktable.rb', line 575 def delete_rows(*args) # ?switches_array?, index, ?count? params = [] if args[0].kind_of?(Array) switches = args.shift switches.each{|k| params << "-#{k}"} end params << '--' params << tagid(args.shift) params.concat(args) tk_send('delete', 'rows', *params) self end |