Method: Tk::TkTable#insert_cols

Defined in:
lib/tkextlib/tktable/tktable.rb

#insert_cols(*args) ⇒ Object

?switches_array?, index, ?count?



644
645
646
647
648
649
650
651
652
653
654
655
# File 'lib/tkextlib/tktable/tktable.rb', line 644

def insert_cols(*args) # ?switches_array?, index, ?count?
  params = []
  if args[0].kind_of?(Array)
    switches = args.shift
    switches.each{|k| params << "-#{k}"}
  end
  params << '--'
  params.concat(args)
  params << tagid(args.shift)
  tk_send('insert', 'cols', *params)
  self
end