Method: TkVariable#clear
- Defined in:
- lib/tk/variable.rb
#clear ⇒ Object
443 444 445 446 447 448 449 |
# File 'lib/tk/variable.rb', line 443 def clear if (is_scalar?) fail RuntimeError, 'cannot clear a scalar variable' end keys.each{|k| unset(k)} self end |