Method: TkVariable#set_list
- Defined in:
- lib/tk/variable.rb
#set_list(val) ⇒ Object Also known as: list=, set_numlist
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 |
# File 'lib/tk/variable.rb', line 1045 def set_list(val) case val when Array self.value=(val) when TkVariable self.value=(val.list) else raise ArgumentError, "Array is expected" end self end |