Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • tk/lib/tk/canvas.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

WindowItem

Constants

CItemTypeName

Public Class Methods

create(canvas, *args) click to toggle source
 
               # File tk/lib/tk/canvas.rb, line 806
def self.create(canvas, *args)
  if args[-1].kind_of?(Hash)
    keys = _symbolkey2str(args.pop)
    win = keys['window']
    # keys['window'] = win.epath if win.kind_of?(TkWindow)
    keys['window'] = _epath(win) if win
    args.push(keys)
  end
  super(canvas, *args)
end