diff options
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r-- | ext/tk/lib/tk.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index a2d2bf898f..78a869204d 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -1839,10 +1839,17 @@ class TkVariable string(value).to_s end +<<<<<<< tk.rb + def to_symbol + value.intern + end + +======= def to_sym value.intern end +>>>>>>> 1.73 def inspect format "#<TkVariable: %s>", @id end @@ -1853,8 +1860,13 @@ class TkVariable self.equal?(other) when String self.to_s == other +<<<<<<< tk.rb + when Symbol + self.to_symbol == other +======= when Symbol self.to_sym == other +>>>>>>> 1.73 when Integer self.to_i == other when Float |