Method: TkVariable#set_numeric
- Defined in:
- lib/tk/variable.rb
#set_numeric(val) ⇒ Object Also known as: numeric=
736 737 738 739 740 741 742 743 744 745 746 |
# File 'lib/tk/variable.rb', line 736 def set_numeric(val) case val when Numeric self.value=(val) when TkVariable self.value=(val.numeric) else raise ArgumentError, "Numeric is expected" end self end |