Method: TkVariable#update

Defined in:
lib/tk/variable.rb

#update(hash) ⇒ Object



451
452
453
454
455
456
457
# File 'lib/tk/variable.rb', line 451

def update(hash)
  if (is_scalar?)
    fail RuntimeError, 'cannot update a scalar variable'
  end
  hash.each{|k,v| self[k] = v}
  self
end