From aacc33649a3629c890363d90bbdbcbb7809a44fc Mon Sep 17 00:00:00 2001 From: nagai Date: Tue, 27 Oct 2009 12:22:42 +0000 Subject: [PATCH] * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/tk/lib/tk/variable.rb | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 67761069d1..9380cb7ee0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Oct 27 21:20:35 2009 Hidetoshi NAGAI + + * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method. + Tue Oct 27 16:36:52 2009 Nobuyoshi Nakada * string.c (chopped_length): get rid of unexpected exception. diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb index 6a618e7ee8..f6ebe551fb 100644 --- a/ext/tk/lib/tk/variable.rb +++ b/ext/tk/lib/tk/variable.rb @@ -1175,6 +1175,13 @@ end end end + def +@ + self.numeric + end + def -@ + -(self.numeric) + end + def &(other) if other.kind_of?(Array) self.to_a & other.to_a