Method: TkcText.create

Defined in:
lib/tk/canvas.rb

.create(canvas, *args) ⇒ Object



815
816
817
818
819
820
821
822
823
# File 'lib/tk/canvas.rb', line 815

def self.create(canvas, *args)
  if args[-1].kind_of?(Hash)
    keys = _symbolkey2str(args.pop)
    txt = keys['text']
    keys['text'] = _get_eval_enc_str(txt) if txt
    args.push(keys)
  end
  super(canvas, *args)
end